@@ -2666,10 +2666,6 @@ gc_event_hook_body(rb_execution_context_t *ec, rb_objspace_t *objspace, const rb
2666
2666
2667
2667
#define gc_event_hook (objspace , event , data ) gc_event_hook_prep(objspace, event, data, (void)0)
2668
2668
2669
- #if USE_MMTK
2670
-
2671
- #endif
2672
-
2673
2669
static inline VALUE
2674
2670
newobj_init (VALUE klass , VALUE flags , int wb_protected , rb_objspace_t * objspace , VALUE obj )
2675
2671
{
@@ -3341,7 +3337,8 @@ cvar_table_free_i(VALUE value, void *ctx)
3341
3337
#define ZOMBIE_OBJ_KEPT_FLAGS (FL_SEEN_OBJ_ID | FL_FINALIZE)
3342
3338
3343
3339
#if USE_MMTK
3344
- static inline void rb_mmtk_push_final_job (struct MMTk_FinalJob * job )
3340
+ static inline void
3341
+ rb_mmtk_push_final_job (struct MMTk_FinalJob * job )
3345
3342
{
3346
3343
rb_objspace_t * objspace = & rb_objspace ;
3347
3344
@@ -7524,15 +7521,15 @@ gc_mark_children(rb_objspace_t *objspace, VALUE obj)
7524
7521
if (any -> as .match .str ) {
7525
7522
gc_mark (objspace , any -> as .match .str );
7526
7523
}
7527
- #if USE_MMTK
7524
+ #if USE_MMTK
7528
7525
if (rb_mmtk_enabled_p ()) {
7529
7526
// If GC is triggered when the mutator is resizing the following buffers, we retain
7530
7527
// them because their contents need to be copied to the new buffers after GC.
7531
7528
rb_mmtk_scan_offsetted_strbuf_field ((char * * )& RMATCH_EXT (any )-> char_offset , false);
7532
7529
rb_mmtk_scan_offsetted_strbuf_field ((char * * )& RMATCH_EXT (any )-> regs .beg , false);
7533
7530
rb_mmtk_scan_offsetted_strbuf_field ((char * * )& RMATCH_EXT (any )-> regs .end , false);
7534
7531
}
7535
- #endif
7532
+ #endif
7536
7533
break ;
7537
7534
7538
7535
case T_RATIONAL :
@@ -10321,7 +10318,7 @@ gc_sort_heap_by_compare_func(rb_objspace_t *objspace, gc_compact_compare_func co
10321
10318
10322
10319
#if USE_MMTK
10323
10320
static void
10324
- gc_ref_update_string (rb_objspace_t * objspace , VALUE str )
10321
+ rb_mmtk_gc_ref_update_string (rb_objspace_t * objspace , VALUE str )
10325
10322
{
10326
10323
if (STR_EMBED_P (str )) {
10327
10324
// Embedded strings don't point into any buffer.
@@ -10851,7 +10848,7 @@ gc_update_object_references(rb_objspace_t *objspace, VALUE obj)
10851
10848
{
10852
10849
#if USE_MMTK
10853
10850
if (rb_mmtk_enabled_p ()) {
10854
- gc_ref_update_string (objspace , obj );
10851
+ rb_mmtk_gc_ref_update_string (objspace , obj );
10855
10852
break ;
10856
10853
}
10857
10854
#endif
@@ -10926,15 +10923,15 @@ gc_update_object_references(rb_objspace_t *objspace, VALUE obj)
10926
10923
UPDATE_IF_MOVED (objspace , any -> as .match .str );
10927
10924
}
10928
10925
10929
- #if USE_MMTK
10926
+ #if USE_MMTK
10930
10927
if (rb_mmtk_enabled_p ()) {
10931
10928
// If GC is triggered when the mutator is resizing the following buffers, we retain
10932
10929
// them because their contents need to be copied to the new buffers after GC.
10933
10930
rb_mmtk_scan_offsetted_strbuf_field ((char * * )& RMATCH_EXT (any )-> char_offset , true);
10934
10931
rb_mmtk_scan_offsetted_strbuf_field ((char * * )& RMATCH_EXT (any )-> regs .beg , true);
10935
10932
rb_mmtk_scan_offsetted_strbuf_field ((char * * )& RMATCH_EXT (any )-> regs .end , true);
10936
10933
}
10937
- #endif
10934
+ #endif
10938
10935
10939
10936
break ;
10940
10937
0 commit comments