Skip to content

Commit

Permalink
Demote another world-age load to monotonic.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Dec 21, 2022
1 parent e3ea8ef commit 707682e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<LoadInst>(world_v)->setOrdering(AtomicOrdering::Acquire);
cast<LoadInst>(world_v)->setOrdering(AtomicOrdering::Monotonic);

Value *age_ok = NULL;
if (calltype) {
Expand Down

0 comments on commit 707682e

Please sign in to comment.