From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 18FE71F934 for ; Tue, 5 Oct 2021 12:48:04 +0000 (UTC) From: Eric Wong To: mwrap-perl@80x24.org Subject: [PATCH 1/7] don't set root_locating until BOOT Date: Tue, 5 Oct 2021 12:47:57 +0000 Message-Id: <20211005124803.7215-2-e@80x24.org> In-Reply-To: <20211005124803.7215-1-e@80x24.org> References: <20211005124803.7215-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We don't know if a thread is Perl or not until it boots. --- Mwrap.xs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Mwrap.xs b/Mwrap.xs index e9b8b3f..b93efd6 100644 --- a/Mwrap.xs +++ b/Mwrap.xs @@ -95,9 +95,7 @@ lfht_new(void) __attribute__((constructor)) static void resolve_malloc(void) { int err; -#ifndef PERL_IMPLICIT_CONTEXT - root_locating = &locating; -#endif + ++locating; #ifdef __FreeBSD__