diff --git a/src/codegen.cpp b/src/codegen.cpp index 8609fbf23d6ae2..6e93c012045df9 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -5653,7 +5653,7 @@ static Function* gen_cfun_wrapper( Value *world_v = ctx.builder.CreateAlignedLoad(getSizeTy(ctx.builder.getContext()), prepare_global_in(jl_Module, jlgetworld_global), Align(sizeof(size_t))); - cast(world_v)->setOrdering(AtomicOrdering::Acquire); + cast(world_v)->setOrdering(AtomicOrdering::Monotonic); Value *age_ok = NULL; if (calltype) {