summaryrefslogtreecommitdiff
path: root/include/ruby/thread_native.h
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2025-09-02 17:42:49 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2025-09-02 18:28:20 -0400
commit61d5fb213d48a329e9978dc0c5deb4c5f30c1068 (patch)
treed3554047ad06bae94e799ebe9df96c552d4aaeac /include/ruby/thread_native.h
parent4c0b68156d35b7149dc4cbd9d402d495daf95776 (diff)
ext/-test-/tracepoint/gc_hook.c: Fix GC safety issue
TestTracepointObj#test_teardown_with_active_GC_end_hook was failing on some platforms due to a Proc that is not marked being passed around. Neither rb_tracepoint_new() nor rb_postponed_job_preregister() promise to mark their callback `void *data`. https://rubyci.s3.amazonaws.com/osx1300arm/ruby-master/log/20250902T154504Z.fail.html.gz Add a GC.start to make the test a better detector for this safety issue and fix it by getting the Proc from an ivar on the rooted module.
Diffstat (limited to 'include/ruby/thread_native.h')
0 files changed, 0 insertions, 0 deletions