mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
Add rb_gc_print_backtrace
This commit is contained in:
parent
65f9c4a06a
commit
5b87294d2f
Notes:
git
2026-01-03 15:43:53 +00:00
8
gc.c
8
gc.c
@ -129,6 +129,14 @@
|
||||
#include "builtin.h"
|
||||
#include "shape.h"
|
||||
|
||||
// TODO: Don't export this function in modular GC, instead MMTk should figure out
|
||||
// how to combine GC thread backtrace with mutator thread backtrace.
|
||||
void
|
||||
rb_gc_print_backtrace(void)
|
||||
{
|
||||
rb_print_backtrace(stderr);
|
||||
}
|
||||
|
||||
unsigned int
|
||||
rb_gc_vm_lock(const char *file, int line)
|
||||
{
|
||||
|
||||
1
gc/gc.h
1
gc/gc.h
@ -108,6 +108,7 @@ MODULAR_GC_FN void rb_gc_initialize_vm_context(struct rb_gc_vm_context *context)
|
||||
MODULAR_GC_FN void rb_gc_worker_thread_set_vm_context(struct rb_gc_vm_context *context);
|
||||
MODULAR_GC_FN void rb_gc_worker_thread_unset_vm_context(struct rb_gc_vm_context *context);
|
||||
MODULAR_GC_FN void rb_gc_move_obj_during_marking(VALUE from, VALUE to);
|
||||
MODULAR_GC_FN void rb_gc_print_backtrace();
|
||||
#endif
|
||||
|
||||
#if USE_MODULAR_GC
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user