summaryrefslogtreecommitdiff
path: root/internal/vm.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2022-10-17 17:50:42 +0900
committerKoichi Sasada <ko1@atdot.net>2022-10-20 17:38:28 +0900
commite35c528d721d209ed8531b10b46c2ac725ea7bf5 (patch)
tree7a5fe3d73461b9e628f04226dedfffe8632a5438 /internal/vm.h
parent7563604fb868d87057733f52d780d841fc1ab6bb (diff)
downloadruby-e35c528d721d209ed8531b10b46c2ac725ea7bf5.tar.gz
push dummy frame for loading process
This patch pushes dummy frames when loading code for the profiling purpose. The following methods push a dummy frame: * `Kernel#require` * `Kernel#load` * `RubyVM::InstructionSequence.compile_file` * `RubyVM::InstructionSequence.load_from_binary` https://bugs.ruby-lang.org/issues/18559
Diffstat (limited to 'internal/vm.h')
-rw-r--r--internal/vm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/vm.h b/internal/vm.h
index c6c6b2ccc2..9480406a2b 100644
--- a/internal/vm.h
+++ b/internal/vm.h
@@ -41,6 +41,7 @@ enum method_missing_reason {
/* vm_insnhelper.h */
rb_serial_t rb_next_class_serial(void);
+VALUE rb_vm_push_frame_fname(struct rb_execution_context_struct *ec, VALUE fname);
/* vm.c */
VALUE rb_obj_is_thread(VALUE obj);