diff options
| author | Satoshi Tagomori <s-tagomori@sakura.ad.jp> | 2025-06-24 23:11:01 +0900 |
|---|---|---|
| committer | Satoshi Tagomori <tagomoris@gmail.com> | 2025-09-29 01:15:38 +0900 |
| commit | c755f35f0ef755274ba409e3c6e21b759f248b29 (patch) | |
| tree | c2c545f509254356922f083feecace249efaaaff | |
| parent | 2100826243ae23e159ccdf9c9805a84074261808 (diff) | |
Stop using ns->top_self here because it's set to th->top_self beforehand if needed
| -rw-r--r-- | vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -794,7 +794,7 @@ vm_set_top_stack(rb_execution_context_t *ec, const rb_iseq_t *iseq, const rb_nam /* for return */ vm_push_frame(ec, iseq, VM_FRAME_MAGIC_TOP | VM_ENV_FLAG_LOCAL | VM_FRAME_FLAG_FINISH, - ns ? ns->top_self : rb_ec_thread_ptr(ec)->top_self, + rb_ec_thread_ptr(ec)->top_self, GC_GUARDED_PTR(ns), (VALUE)vm_cref_new_toplevel(ec), /* cref or me */ ISEQ_BODY(iseq)->iseq_encoded, ec->cfp->sp, |
