Skip to content

Commit

Permalink
Hoist signal page lookup outside fence
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jul 23, 2021
1 parent 6f06a98 commit c76459c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cgutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3451,8 +3451,9 @@ static Value *emit_defer_signal(jl_codectx_t &ctx)
static void emit_safepoint(jl_codectx_t &ctx)
{
ctx.builder.CreateCall(prepare_call(gcroot_flush_func));
Value* signal_page = get_current_signal_page(ctx);
emit_signal_fence(ctx);
ctx.builder.CreateLoad(T_size, get_current_signal_page(ctx), true);
ctx.builder.CreateLoad(T_size, signal_page, true);
emit_signal_fence(ctx);
}

Expand Down

0 comments on commit c76459c

Please sign in to comment.