summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2024-12-09 10:09:39 -0800
committerTakashi Kokubun <[email protected]>2024-12-09 10:09:40 -0800
commit14e0a40cd0f7b79c9fd63c671399c389667611c3 (patch)
tree13a3882815738e19a86640609919ba1c53dc1e2f
parentcff031253f228ed28a00d95935e42c68a85f34ad (diff)
YJIT: Add a comment about a lazy frame call
jit_prepare_lazy_frame_call is a complicated trick and comes with memory overhead. Every use of the function should come with justification.
-rw-r--r--yjit/src/codegen.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs
index 504777352b..e4283b786f 100644
--- a/yjit/src/codegen.rs
+++ b/yjit/src/codegen.rs
@@ -6545,6 +6545,7 @@ fn jit_rb_class_superclass(
fn rb_class_superclass(klass: VALUE) -> VALUE;
}
+ // It may raise "uninitialized class"
if !jit_prepare_lazy_frame_call(jit, asm, cme, StackOpnd(0)) {
return false;
}