Message ID | 87cynn2f3w.fsf@oldenburg.str.redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=cDZ7xsmZ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WJCSF2z61z1xqc for <incoming@patchwork.ozlabs.org>; Tue, 9 Jul 2024 17:34:53 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 88DEA38471C3 for <incoming@patchwork.ozlabs.org>; Tue, 9 Jul 2024 07:34:51 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 94FAD384AB6C for <libc-alpha@sourceware.org>; Tue, 9 Jul 2024 07:34:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 94FAD384AB6C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 94FAD384AB6C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720510477; cv=none; b=w+3mvhDXommRuIJZWCbRt9m5ajn0TGnYZLh0DtgJFfISPOrkqkIR/0ZtYtKq/8ZcAmp8HQO0pU+iPlRH5dsEfk4LgquEcp65Af7uxpEIpRbnrq3iNHTxl1DdjK2SoWsV9emX++GIaDTu3GtgoA7aFTghraVoGUX4c6c2TJGLmDI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720510477; c=relaxed/simple; bh=tmXcvc24ceF0a1StPdjnkMaJ32eY85vrFNFXxjENvq4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=lzDFz8XssYjkFk+h1een7Ie9xOdPg9YTrD5S8WDiA2AiWwp7CsXuDftXkj5d4i98AxT1ZlF38ys19ZemsEVZkba6T3l+1N9rCxMlGmo2yvORUPJPl6KTixmaZxDZydA3SlkSXGy4jhSS0T6O8ob9IUekWoTCLkBy8AJtfI9l/oY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1720510475; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=+3KnzJos5tt248UWFs77HZ05Yua4UQZJQzBEsaZX4Bw=; b=cDZ7xsmZen7y6AnkBk4MAV2VGIkgApV5hVDVk/sRaoxbuEaE/joQ5i3mH8SODrzinkLnNm mn0i1EMNuxHlvph/zj+NEWhr6wVkdF257hS3FY7gT4dDqaz2CqjzXZue5BIdzzUFOPHfnE yQKvBpnacaiKYJgTukKvRMIswzAUaC4= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-583-uesbHM6tPE6IaMdSYsjxsQ-1; Tue, 09 Jul 2024 03:34:32 -0400 X-MC-Unique: uesbHM6tPE6IaMdSYsjxsQ-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CE0CB1955DD4 for <libc-alpha@sourceware.org>; Tue, 9 Jul 2024 07:34:31 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.45.224.64]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D0427195605F for <libc-alpha@sourceware.org>; Tue, 9 Jul 2024 07:34:30 +0000 (UTC) From: Florian Weimer <fweimer@redhat.com> To: libc-alpha@sourceware.org Subject: [PATCH] malloc: Use initial-exec TLS in libmemusage Date: Tue, 09 Jul 2024 09:34:27 +0200 Message-ID: <87cynn2f3w.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org |
Series |
malloc: Use initial-exec TLS in libmemusage
|
expand
|
diff --git a/malloc/memusage.c b/malloc/memusage.c index e8ae80dc74..46c8434ae1 100644 --- a/malloc/memusage.c +++ b/malloc/memusage.c @@ -86,7 +86,7 @@ static _Atomic unsigned long int inplace_mremap; static _Atomic unsigned long int decreasing_mremap; static _Atomic size_t current_heap; static _Atomic size_t peak_use[3]; -static __thread uintptr_t start_sp; +static __thread uintptr_t start_sp attribute_tls_model_ie; /* A few macros to make the source more readable. */ #define peak_heap peak_use[0]