diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2021-04-07 15:36:02 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:33 -0400 |
commit | 42af04efee38de4435a04ea0487fce483db10dee (patch) | |
tree | f8759b06af2d47d0f0274d211a5a2da352cbac15 /yjit_core.h | |
parent | 54312d777cc22a52cfafcce0a0a20ed48375b82e (diff) |
Add flag bits to avoid compiling stubs multiple times.
Fixes bug involving ractors and branch stubs.
Diffstat (limited to 'yjit_core.h')
-rw-r--r-- | yjit_core.h | 6 |
1 files changed, 5 insertions, 1 deletions
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; |