Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drvi committed Nov 21, 2024
1 parent 2ab1309 commit 775d60e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 775d60e

Please sign in to comment.