Skip to content

Commit 6cc1542

Browse files
committed
Undo change in atomic ordering.
1 parent ac41e0e commit 6cc1542

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegen.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -5959,7 +5959,7 @@ static Function* gen_cfun_wrapper(
59595959

59605960
Value *world_v = ctx.builder.CreateAlignedLoad(ctx.types().T_size,
59615961
prepare_global_in(jl_Module, jlgetworld_global), ctx.types().alignof_ptr);
5962-
cast<LoadInst>(world_v)->setOrdering(AtomicOrdering::Monotonic);
5962+
cast<LoadInst>(world_v)->setOrdering(AtomicOrdering::Acquire);
59635963

59645964
Value *age_ok = NULL;
59655965
if (calltype) {
@@ -8340,7 +8340,7 @@ static jl_llvm_functions_t
83408340
LoadInst *world = new LoadInst(ctx.types().T_size,
83418341
prepare_global_in(jl_Module, jlgetworld_global), Twine(),
83428342
/*isVolatile*/false, ctx.types().alignof_ptr, /*insertBefore*/&I);
8343-
world->setOrdering(AtomicOrdering::Monotonic);
8343+
world->setOrdering(AtomicOrdering::Acquire);
83448344
StoreInst *store_world = new StoreInst(world, world_age_field,
83458345
/*isVolatile*/false, ctx.types().alignof_ptr, /*insertBefore*/&I);
83468346
(void)store_world;

0 commit comments

Comments
 (0)