Skip to content

Commit 9ffb19d

Browse files
WIP: I want to see the shape id here.
I suspect it's 0
1 parent d34de3f commit 9ffb19d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

gc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1913,10 +1913,11 @@ static inline void
19131913
obj_free_object_id(VALUE obj)
19141914
{
19151915
if (RB_UNLIKELY(id_to_obj_tbl)) {
1916+
shape_id_t shape_id = rb_shape_get_shape_id(obj);
19161917
if (rb_shape_obj_has_id(obj)) {
19171918
VALUE obj_id = rb_obj_id(obj);
19181919
if (!FIXNUM_P(obj_id)) {
1919-
rb_bug("Corrupted object_id=%s obj=%s", rb_obj_info(obj_id), rb_obj_info(obj));
1920+
rb_bug("Corrupted object_id=%s obj=%s, shape_id=%d", rb_obj_info(obj_id), rb_obj_info(obj), shape_id);
19201921
}
19211922
st_data_t id = (st_data_t)obj_id;
19221923
GC_ASSERT(id);

0 commit comments

Comments
 (0)