From 775d60ec20569b4bbe0a844132c0ef1178f9809d Mon Sep 17 00:00:00 2001 From: Drvi Date: Thu, 21 Nov 2024 16:05:40 +0100 Subject: [PATCH] . --- src/gf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gf.c b/src/gf.c index fdd5b57b5b5a4..58050bf95cb11 100644 --- a/src/gf.c +++ b/src/gf.c @@ -25,7 +25,7 @@ extern "C" { #endif -static _Atomic(bool) allow_new_worlds = 1; +static _Atomic(bool) allow_new_worlds = true; JL_DLLEXPORT _Atomic(size_t) jl_world_counter = 1; // uses atomic acquire/release JL_DLLEXPORT size_t jl_get_world_counter(void) JL_NOTSAFEPOINT { @@ -1954,7 +1954,7 @@ JL_DLLEXPORT void jl_disable_new_worlds(void) { if (jl_generating_output()) jl_error("Disabling Method changes is not possible when generating output."); - jl_atomic_store_release(&allow_new_worlds, 0); + jl_atomic_store_release(&allow_new_worlds, false); jl_foreach_reachable_mtable(erase_all_backedges, (void*)NULL); }