From owner-svn-src-user@freebsd.org Fri Sep 18 17:17:41 2015 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BCC169CF95C for ; Fri, 18 Sep 2015 17:17:41 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AA68E141A; Fri, 18 Sep 2015 17:17:41 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t8IHHfdD070950; Fri, 18 Sep 2015 17:17:41 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t8IHHfUP070949; Fri, 18 Sep 2015 17:17:41 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201509181717.t8IHHfUP070949@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Fri, 18 Sep 2015 17:17:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r287962 - user/pho/stress2/misc X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2015 17:17:41 -0000 Author: pho Date: Fri Sep 18 17:17:40 2015 New Revision: 287962 URL: https://svnweb.freebsd.org/changeset/base/287962 Log: No need to use atomic_*. Pointed out by: kib Sponsored by: EMC / Isilon storage division Modified: user/pho/stress2/misc/mlockall5.sh Modified: user/pho/stress2/misc/mlockall5.sh ============================================================================== --- user/pho/stress2/misc/mlockall5.sh Fri Sep 18 17:09:59 2015 (r287961) +++ user/pho/stress2/misc/mlockall5.sh Fri Sep 18 17:17:40 2015 (r287962) @@ -80,8 +80,6 @@ EOF #include #include -#include - #include #include #include @@ -134,7 +132,7 @@ test(void) rc = pthread_create(&tid[1], NULL, ml, NULL); if (rc != 0) errc(1, rc, "pthread_create()"); - atomic_add_int(&share, 1); + share = 1; for (i = 0; i < (int)nitems(tid); i++) { rc = pthread_join(tid[i], NULL); if (rc != 0)