From 42af04efee38de4435a04ea0487fce483db10dee Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Wed, 7 Apr 2021 15:36:02 -0400 Subject: Add flag bits to avoid compiling stubs multiple times. Fixes bug involving ractors and branch stubs. --- yjit_core.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'yjit_core.h') diff --git a/yjit_core.h b/yjit_core.h index 7d7803566c..aa2d3fd008 100644 --- a/yjit_core.h +++ b/yjit_core.h @@ -176,7 +176,11 @@ typedef struct yjit_branch_entry branchgen_fn gen_fn; // Shape of the branch - branch_shape_t shape; + branch_shape_t shape : 2; + + // Two flag bits to indicate target addresses + // have been patched (are not stubs) + uint8_t dst_patched : 2; } branch_t; -- cgit v1.2.3