File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5959,7 +5959,7 @@ static Function* gen_cfun_wrapper(
5959
5959
5960
5960
Value *world_v = ctx.builder .CreateAlignedLoad (ctx.types ().T_size ,
5961
5961
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 );
5963
5963
5964
5964
Value *age_ok = NULL ;
5965
5965
if (calltype) {
@@ -8340,7 +8340,7 @@ static jl_llvm_functions_t
8340
8340
LoadInst *world = new LoadInst (ctx.types ().T_size ,
8341
8341
prepare_global_in (jl_Module, jlgetworld_global), Twine (),
8342
8342
/* isVolatile*/ false , ctx.types ().alignof_ptr , /* insertBefore*/ &I);
8343
- world->setOrdering (AtomicOrdering::Monotonic );
8343
+ world->setOrdering (AtomicOrdering::Acquire );
8344
8344
StoreInst *store_world = new StoreInst (world, world_age_field,
8345
8345
/* isVolatile*/ false , ctx.types ().alignof_ptr , /* insertBefore*/ &I);
8346
8346
(void )store_world;
You can’t perform that action at this time.
0 commit comments