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 Sep 14, 2021
1 parent 52d6506 commit 3ffc281
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 @@ -3592,8 +3592,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 3ffc281

Please sign in to comment.