diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-06-08 17:57:44 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-06-18 03:35:38 +0900 |
commit | 0a36cab1b53646062026c3181117fad73802baf4 (patch) | |
tree | e51f35d4865d7dd535189738604e748351935815 /vm_backtrace.c | |
parent | dfba87cd622f9699f54d1d0b8c057deb428874b6 (diff) |
Enable USE_ISEQ_NODE_ID by default
... which is formally called EXPERIMENTAL_ISEQ_NODE_ID.
See also ff69ef27b06eed1ba750e7d9cab8322f351ed245.
https://bugs.ruby-lang.org/issues/17930
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4558
Diffstat (limited to 'vm_backtrace.c')
-rw-r--r-- | vm_backtrace.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vm_backtrace.c b/vm_backtrace.c index d0fdda343f..670f73d2a2 100644 --- a/vm_backtrace.c +++ b/vm_backtrace.c @@ -47,7 +47,7 @@ calc_pos(const rb_iseq_t *iseq, const VALUE *pc, int *lineno, int *node_id) return 0; } if (lineno) *lineno = FIX2INT(iseq->body->location.first_lineno); -#ifdef EXPERIMENTAL_ISEQ_NODE_ID +#ifdef USE_ISEQ_NODE_ID if (node_id) *node_id = -1; #endif return 1; @@ -70,7 +70,7 @@ calc_pos(const rb_iseq_t *iseq, const VALUE *pc, int *lineno, int *node_id) } #endif if (lineno) *lineno = rb_iseq_line_no(iseq, pos); -#ifdef EXPERIMENTAL_ISEQ_NODE_ID +#ifdef USE_ISEQ_NODE_ID if (node_id) *node_id = rb_iseq_node_id(iseq, pos); #endif return 1; @@ -85,7 +85,7 @@ calc_lineno(const rb_iseq_t *iseq, const VALUE *pc) return 0; } -#ifdef EXPERIMENTAL_ISEQ_NODE_ID +#ifdef USE_ISEQ_NODE_ID inline static int calc_node_id(const rb_iseq_t *iseq, const VALUE *pc) { @@ -319,7 +319,7 @@ location_path_m(VALUE self) return location_path(location_ptr(self)); } -#ifdef EXPERIMENTAL_ISEQ_NODE_ID +#ifdef USE_ISEQ_NODE_ID static int location_node_id(rb_backtrace_location_t *loc) { @@ -341,7 +341,7 @@ location_node_id(rb_backtrace_location_t *loc) void rb_frame_info_get(VALUE obj, VALUE *path, int *node_id) { -#ifdef EXPERIMENTAL_ISEQ_NODE_ID +#ifdef USE_ISEQ_NODE_ID rb_backtrace_location_t *loc = location_ptr(obj); *path = location_path(loc); *node_id = location_node_id(loc); |