summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-07-27 17:27:05 -0700
committerGitHub <noreply@github.com>2023-07-27 17:27:05 -0700
commit38be9a9b72d606024eb94900ed834b08493a1518 (patch)
tree7abc4724382a6d226eb4f9e2584fb606a477a8d6 /vm_dump.c
parentbf4d64d8d0a35a1e92707e0cb2706348f21eb9b5 (diff)
Clean up OPT_STACK_CACHING (#8132)
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/vm_dump.c b/vm_dump.c
index ba5434b393..b9f4e098a0 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -422,11 +422,7 @@ rb_vmdebug_debug_print_pre(const rb_execution_context_t *ec, const rb_control_fr
}
void
-rb_vmdebug_debug_print_post(const rb_execution_context_t *ec, const rb_control_frame_t *cfp
-#if OPT_STACK_CACHING
- , VALUE reg_a, VALUE reg_b
-#endif
- )
+rb_vmdebug_debug_print_post(const rb_execution_context_t *ec, const rb_control_frame_t *cfp)
{
#if VMDEBUG > 9
SDR2(cfp);
@@ -442,15 +438,6 @@ rb_vmdebug_debug_print_post(const rb_execution_context_t *ec, const rb_control_f
/* stack_dump_thobj(ec); */
vm_stack_dump_each(ec, ec->cfp);
-#if OPT_STACK_CACHING
- {
- VALUE rstr;
- rstr = rb_inspect(reg_a);
- fprintf(stderr, " sc reg A: %s\n", StringValueCStr(rstr));
- rstr = rb_inspect(reg_b);
- fprintf(stderr, " sc reg B: %s\n", StringValueCStr(rstr));
- }
-#endif
printf
("--------------------------------------------------------------\n");
#endif