diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-08-01 03:04:42 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-09-25 22:57:28 +0900 |
commit | ac244938e8b97c8bd42d1dc8ed820091e6ef5537 (patch) | |
tree | d31693cc37095ca9f6a21092e8c254273b05915c /gc.c | |
parent | acd44902b917230066b4fc7ea6c7e12556274512 (diff) |
Dump backtraces to an arbitrary stream
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7798,7 +7798,7 @@ check_children_i(const VALUE child, void *ptr) if (check_rvalue_consistency_force(child, FALSE) != 0) { fprintf(stderr, "check_children_i: %s has error (referenced from %s)", obj_info(child), obj_info(data->parent)); - rb_print_backtrace(); /* C backtrace will help to debug */ + rb_print_backtrace(stderr); /* C backtrace will help to debug */ data->err_count++; } @@ -9118,7 +9118,7 @@ rb_gc_register_address(VALUE *addr) if (0 && !SPECIAL_CONST_P(obj)) { rb_warn("Object is assigned to registering address already: %"PRIsVALUE, rb_obj_class(obj)); - rb_print_backtrace(); + rb_print_backtrace(stderr); } } |