@@ -9740,6 +9740,7 @@ gc_move(rb_objspace_t *objspace, VALUE scan, VALUE free, size_t src_slot_size, s
9740
9740
return (VALUE )src ;
9741
9741
}
9742
9742
9743
+ #if GC_CAN_COMPILE_COMPACTION
9743
9744
static int
9744
9745
compare_free_slots (const void * left , const void * right , void * dummy )
9745
9746
{
@@ -9788,6 +9789,7 @@ gc_sort_heap_by_empty_slots(rb_objspace_t *objspace)
9788
9789
free (page_list );
9789
9790
}
9790
9791
}
9792
+ #endif
9791
9793
9792
9794
static void
9793
9795
gc_ref_update_array (rb_objspace_t * objspace , VALUE v )
@@ -10487,6 +10489,7 @@ gc_update_references(rb_objspace_t *objspace)
10487
10489
gc_update_table_refs (objspace , finalizer_table );
10488
10490
}
10489
10491
10492
+ #if GC_CAN_COMPILE_COMPACTION
10490
10493
/*
10491
10494
* call-seq:
10492
10495
* GC.latest_compact_info -> {:considered=>{:T_CLASS=>11}, :moved=>{:T_CLASS=>11}}
@@ -10535,7 +10538,11 @@ gc_compact_stats(VALUE self)
10535
10538
10536
10539
return h ;
10537
10540
}
10541
+ #else
10542
+ # define gc_compact_stats rb_f_notimplement
10543
+ #endif
10538
10544
10545
+ #if GC_CAN_COMPILE_COMPACTION
10539
10546
static void
10540
10547
root_obj_check_moved_i (const char * category , VALUE obj , void * data )
10541
10548
{
@@ -10610,7 +10617,11 @@ gc_compact(VALUE self)
10610
10617
10611
10618
return gc_compact_stats (self );
10612
10619
}
10620
+ #else
10621
+ # define gc_compact rb_f_notimplement
10622
+ #endif
10613
10623
10624
+ #if GC_CAN_COMPILE_COMPACTION
10614
10625
static VALUE
10615
10626
gc_verify_compaction_references (rb_execution_context_t * ec , VALUE self , VALUE double_heap , VALUE toward_empty )
10616
10627
{
@@ -10644,6 +10655,9 @@ gc_verify_compaction_references(rb_execution_context_t *ec, VALUE self, VALUE do
10644
10655
10645
10656
return gc_compact_stats (self );
10646
10657
}
10658
+ #else
10659
+ # define gc_verify_compaction_references (rb_builtin_arity2_function_type)rb_f_notimplement
10660
+ #endif
10647
10661
10648
10662
VALUE
10649
10663
rb_gc_start (void )
@@ -11234,6 +11248,7 @@ gc_disable(rb_execution_context_t *ec, VALUE _)
11234
11248
return rb_gc_disable ();
11235
11249
}
11236
11250
11251
+ #if GC_CAN_COMPILE_COMPACTION
11237
11252
/*
11238
11253
* call-seq:
11239
11254
* GC.auto_compact = flag
@@ -11252,7 +11267,11 @@ gc_set_auto_compact(VALUE _, VALUE v)
11252
11267
ruby_enable_autocompact = RTEST (v );
11253
11268
return v ;
11254
11269
}
11270
+ #else
11271
+ # define gc_set_auto_compact rb_f_notimplement
11272
+ #endif
11255
11273
11274
+ #if GC_CAN_COMPILE_COMPACTION
11256
11275
/*
11257
11276
* call-seq:
11258
11277
* GC.auto_compact -> true or false
@@ -11264,6 +11283,9 @@ gc_get_auto_compact(VALUE _)
11264
11283
{
11265
11284
return RBOOL (ruby_enable_autocompact );
11266
11285
}
11286
+ #else
11287
+ # define gc_get_auto_compact rb_f_notimplement
11288
+ #endif
11267
11289
11268
11290
static int
11269
11291
get_envparam_size (const char * name , size_t * default_value , size_t lower_bound )
0 commit comments