mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Merge branch 'sh-patch-ruby-object-tracing' into 'master'
Add Ruby patch to test GC issues with object tracing enabled See merge request gitlab-org/gitlab-build-images!474
This commit is contained in:
commit
54cd4ef6df
1 changed files with 12 additions and 0 deletions
12
patches/ruby/2.7.5/object-tracing-segfault.patch
Normal file
12
patches/ruby/2.7.5/object-tracing-segfault.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/ext/objspace/object_tracing.c b/ext/objspace/object_tracing.c
|
||||
index a057ac2a96..a122247e3b 100644
|
||||
--- a/ext/objspace/object_tracing.c
|
||||
+++ b/ext/objspace/object_tracing.c
|
||||
@@ -110,6 +110,7 @@ newobj_i(VALUE tpval, void *data)
|
||||
info->class_path = class_path_cstr;
|
||||
info->generation = rb_gc_count();
|
||||
st_insert(arg->object_table, (st_data_t)obj, (st_data_t)info);
|
||||
+ RB_GC_GUARD(obj);
|
||||
}
|
||||
|
||||
static void
|
||||
Loading…
Add table
Add a link
Reference in a new issue