ca94aff Define the GC compaction support during run time.

Authored and Committed by jackorp 2 years ago
    Define the GC compaction support during run time.
    
    Previous commit changed GC compaction methods to not be implemented
    when not supported. However, that commit only does compile time checks,
    but there are additional compaction support checks during run time.
    
    This commit changes it so that GC compaction methods aren't defined
    also during run time if the platform does not support GC compaction.
    
    The patch is manually backported from following change set:
    https://github.com/ruby/ruby/pull/6019
    https://github.com/ruby/ruby/commit/2c190863239bee3f54cfb74b16bb6ea4cae6ed20
    
    To apply the patch included with this commit,
    first apply `ruby-3.2.0-define-unsupported-gc-compaction-methods-as-rb_f_notimplement.patch`
    and then apply the `ruby-3.2.0-detect_compaction_support_during_runtime.patch`.
    
    Related upstream issue: https://bugs.ruby-lang.org/issues/18829
    
        
file modified
+10 -7