From nobody Wed Aug 14 03:26:17 2024 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WkDDp0PDHz5SVJY; Wed, 14 Aug 2024 03:26:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WkDDn6SS8z4mh7; Wed, 14 Aug 2024 03:26:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723605977; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rhL+iHdrfTCljvcnw/jBfA9idr/kSUzaVSQ3jyGlCYk=; b=OZI6gTIZfPKKcD0OZ6faMVQ7XYllhbwoWEZZHiEB9lf0J9a/kGiduU5TPIAimwCRzdKkw2 CGXV9EQzM3Es9mN8XnnffPEiPdUcuzFuCYZIBjwCe7GyJemdXCZTcCihUpV/4d/0xx838J P+nRkAAgFWAfIGbDxs9O0ib8J186UhQ2T0wx4ADMikLrPXcZklxUXJdYkECPctraKuzY+y +MpQnBGc1j3UY/34c7HK3IZLDs0jny/Hh2Ry6FvdJe5aRFC+35rk3swhH2rD0x+VBuPkiD KExDf9XSaiz3HJK69R5vTzI58oZMbRQK3w5+lDyGjGToBGT2ISLrMYfiUK9xrQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723605977; a=rsa-sha256; cv=none; b=we7BeX1ZYLXEp70d5EanJ1Jmrt6THJyqglkIp22fogKRwyoXQKW/QTlmrLIHNrbF+1M6YZ WKySyjDYcqX1dqDbOaBwg6C1hHN66t4UGFzK0fUkuvqmJYhEyJ2Jnaujz+6Oku93ya6Aq5 xg8EVLan8uFcLuWiLsljN2VD0u41VDBt8N7aPY/gGo5DWf1CRm6520SmkZOQDzAP+3nZI4 xLHY1+l1jY1OXu+icU6ky8qSh/QjYa5qtjIK7rPT9cOtLYjlNj3DnDlEk7AN/9aNJ9plBd ZDiWJSlv4k1lSqZ3ZvfFLR/oLQK+Tn13pUCtKLibCzj7fXoZSwUxkDo5vNjjSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723605977; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rhL+iHdrfTCljvcnw/jBfA9idr/kSUzaVSQ3jyGlCYk=; b=geAlbpINIjNpmlh904BEARXir0el7uhrwpyffFGamPyBqjRUwC51PWBEUJ62j4hUPRYu7F ESLjRIo1qEToLCELDZ6vuutvjykLIeewpyaQO1kAcquv49Ei2/PgoP4nDTiIg5Rd1S8hdp WGo4PdDy2WiXF8p1OBOwdt2PZn79hAWYr9SUSQJl17bS0qclLSpJ4Vdg7Aj5o7ws8TlSdQ kD8Dbtfj1DFvxIXU+bmSLs+b5Z3POYrsRDaJXoNtPhhfTEaZBrZZUetyhW8uD3sDOJQhRR HI3itiKaTeO9ofYc7WYuwA2bGugnvBj5sB77LJyP+Smd+t1hxBiGr2E+FWrKTA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WkDDn64sGzdfV; Wed, 14 Aug 2024 03:26:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47E3QH2Y052205; Wed, 14 Aug 2024 03:26:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47E3QHXr052202; Wed, 14 Aug 2024 03:26:17 GMT (envelope-from git) Date: Wed, 14 Aug 2024 03:26:17 GMT Message-Id: <202408140326.47E3QHXr052202@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 023b97a69969 - stable/14 - msun/ld80/e_powl.c: make powl() thread-safe by making static variables thread-local List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 023b97a69969257cf3e8ea9f1a9cefce6218fa3a Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=023b97a69969257cf3e8ea9f1a9cefce6218fa3a commit 023b97a69969257cf3e8ea9f1a9cefce6218fa3a Author: Konstantin Belousov AuthorDate: 2024-08-06 14:50:57 +0000 Commit: Konstantin Belousov CommitDate: 2024-08-14 03:25:55 +0000 msun/ld80/e_powl.c: make powl() thread-safe by making static variables thread-local (cherry picked from commit 0c00dbfeb0c814c3a87a4d490db3692c1f9441e9) --- lib/msun/ld80/e_powl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/msun/ld80/e_powl.c b/lib/msun/ld80/e_powl.c index 34978b964559..d04d77a5ee98 100644 --- a/lib/msun/ld80/e_powl.c +++ b/lib/msun/ld80/e_powl.c @@ -230,13 +230,13 @@ static const long double R[] = { static const long double MAXLOGL = 1.1356523406294143949492E4L; static const long double MINLOGL = -1.13994985314888605586758E4L; static const long double LOGE2L = 6.9314718055994530941723E-1L; -static volatile long double z; -static long double w, W, Wa, Wb, ya, yb, u; +static _Thread_local volatile long double z; +static _Thread_local long double w, W, Wa, Wb, ya, yb, u; static const long double huge = 0x1p10000L; #if 0 /* XXX Prevent gcc from erroneously constant folding this. */ static const long double twom10000 = 0x1p-10000L; #else -static volatile long double twom10000 = 0x1p-10000L; +static _Thread_local volatile long double twom10000 = 0x1p-10000L; #endif static long double reducl( long double );