diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2025-03-12 09:25:51 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-03-13 10:12:24 -0400 |
| commit | bdb25959fb047af0358f33d7327b7752dca14aa4 (patch) | |
| tree | a87ad9658cd4b20f2fc891faf9c8eaca09b0da2c /ext/objspace | |
| parent | 3d4c7c38020fa4de420e927e0b579aeff62b54ba (diff) | |
Move object_id to flags for ObjectSpace dumps
Moving object_id dumping from ObjectSpace to the GC flags allows ObjectSpace
to not assume the FL_SEEN_OBJ_ID flag and instead move it to the responsibility
of the GC.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12915
Diffstat (limited to 'ext/objspace')
| -rw-r--r-- | ext/objspace/objspace_dump.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/objspace/objspace_dump.c b/ext/objspace/objspace_dump.c index 139612526f..dd0459bf56 100644 --- a/ext/objspace/objspace_dump.c +++ b/ext/objspace/objspace_dump.c @@ -636,11 +636,6 @@ dump_object(VALUE obj, struct dump_config *dc) dump_append_sizet(dc, memsize); } - if (FL_TEST(obj, FL_SEEN_OBJ_ID)) { - dump_append(dc, ", \"object_id\":"); - dump_append_lu(dc, RB_NUM2ULONG(rb_obj_id(obj))); - } - struct rb_gc_object_metadata_entry *gc_metadata = rb_gc_object_metadata(obj); for (int i = 0; gc_metadata[i].name != 0; i++) { if (i == 0) { |
