summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/argf/path_spec.rb
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@shopify.com>2025-04-30 10:28:25 -0700
committerJohn Hawthorn <john@hawthorn.email>2026-06-08 11:47:54 -0700
commit4c3d436636f4750a09fcaa01d853c1ac8152c8e1 (patch)
treeb75326cd7dae35fb5439e3668c8210f76c65e9fe /spec/rubyspec/core/argf/path_spec.rb
parent4c7f28d8551dcf2065c98cccbbf292f5c99558f1 (diff)
Add a check in non-debug mode for a T_NONE classHEADmaster
Although a crash could occur anywhere, one of the most common symptoms we see from getting a reference to a garbage collected object is crashing while attempting to call a method on it. These crashes usually occur when trying to perform an rb_id_table_lookup in the "class" cc_tbl, where the class is usually another garbage collected object, because the freelist is stored in the class pointer. This commit aims to have a better error message in this case, in hopes of having a better grouping of errors and to give a better hint to those investigating and triaging crashes.
Diffstat (limited to 'spec/rubyspec/core/argf/path_spec.rb')
0 files changed, 0 insertions, 0 deletions