summaryrefslogtreecommitdiff
path: root/test/cgi/testdata
diff options
context:
space:
mode:
authorMike Dalessio <mike.dalessio@gmail.com>2022-05-23 17:31:14 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2022-05-24 09:40:03 -0700
commit0c36ba53192c5a0d245c9b626e4346a32d7d144e (patch)
treef0865e6e17399998e6e5049edc8969c2da64560c /test/cgi/testdata
parent0de1495f358e9b892dfa63d4b74f59b1d2903703 (diff)
Define unsupported GC compaction methods as rb_f_notimplement
Fixes [Bug #18779] Define the following methods as `rb_f_notimplement` on unsupported platforms: - GC.compact - GC.auto_compact - GC.auto_compact= - GC.latest_compact_info - GC.verify_compaction_references This change allows users to call `GC.respond_to?(:compact)` to properly test for compaction support. Previously, it was necessary to invoke `GC.compact` or `GC.verify_compaction_references` and check if those methods raised `NotImplementedError` to determine if compaction was supported. This follows the precedent set for other platform-specific methods. For example, in `process.c` for methods such as `Process.fork`, `Process.setpgid`, and `Process.getpriority`.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5934
Diffstat (limited to 'test/cgi/testdata')
0 files changed, 0 insertions, 0 deletions