diff options
| author | Satoshi Tagomori <s-tagomori@sakura.ad.jp> | 2025-07-27 11:04:15 +0900 |
|---|---|---|
| committer | Satoshi Tagomori <tagomoris@gmail.com> | 2025-09-29 01:15:38 +0900 |
| commit | 20c73b17232cc5bd0f8a3c13507d56b5f11ab2ed (patch) | |
| tree | 9baff7b5a8c93fd7911926077d19029b86beb847 /coroutine | |
| parent | a5df24fe010d3631b324a6aadcb2db5b32c270e5 (diff) | |
Skip CFUNC frames in the current namespace detection
* The current namespace should be based on the Ruby-level location (file, line no in .rb)
and we can get it by LEP(ep) basically (VM_ENV_FLAG_LOCAL flag is set)
* But the control frame with VM_FRAME_MAGIC_CFUNC is also a LOCAL frame because
it's a visible Ruby-level frame without block handlers
* So, for the namespace detection, LEP(ep) is not enough and we need to skip CFUNC
frames to fetch the caller of such frames
Diffstat (limited to 'coroutine')
0 files changed, 0 insertions, 0 deletions
