diff options
| author | John Hawthorn <john@hawthorn.email> | 2025-06-05 13:27:33 -0700 |
|---|---|---|
| committer | John Hawthorn <john@hawthorn.email> | 2025-06-12 13:13:55 -0700 |
| commit | b28f3443122c4e5461877d704618c752e56ca8b0 (patch) | |
| tree | 57e5f9a8e97e07a87b460fb1ad25eaeaafd36eb3 /test/ruby/test_method_cache.rb | |
| parent | a34fcf401b5b20c38eb98b42815e17bc2af9bad5 (diff) | |
Use a T_DATA for cross_ractor_require
[Bug #21090]
The struct was previously allocated on the stack, which could be freed
if the Thread is terminated. Moving this to a T_DATA on the heap should
mean this is no longer an issue.
1000.times { Ractor.new { th = Thread.new { require "rbconfig" }; Thread.pass }.take }
Co-authored-by: Luke Gruber <luke.gruber@shopify.com>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13531
Diffstat (limited to 'test/ruby/test_method_cache.rb')
0 files changed, 0 insertions, 0 deletions
