@@ -7438,6 +7438,7 @@ enum gc_stat_sym {
74387438#endif
74397439 gc_stat_sym_weak_references_count ,
74407440
7441+ // Added by ractor team
74417442 gc_stat_sym_barrier_time_taken_ns ,
74427443 gc_stat_sym_barrier_serial ,
74437444 gc_stat_sym_gc_barrier_time_taken_ns ,
@@ -7449,6 +7450,17 @@ enum gc_stat_sym {
74497450 gc_stat_sym_fstring_table_size ,
74507451 gc_stat_sym_fstring_table_capacity ,
74517452
7453+ #if CC_TBL_STATS
7454+ gc_stat_sym_cc_table_duplications ,
7455+ gc_stat_sym_cc_table_creations ,
7456+ gc_stat_sym_cc_invalidations ,
7457+ gc_stat_sym_cc_table_cme_evictions ,
7458+ gc_stat_sym_cc_table_frees ,
7459+ gc_stat_sym_cc_table_duplications_unshareable_singletons ,
7460+ #endif
7461+
7462+ // /Added by ractor team
7463+
74527464#if RGENGC_PROFILE
74537465 gc_stat_sym_total_generated_normal_object_count ,
74547466 gc_stat_sym_total_generated_shady_object_count ,
@@ -7501,6 +7513,8 @@ setup_gc_stat_symbols(void)
75017513#endif
75027514 S (weak_references_count );
75037515
7516+ // Added by ractor team
7517+
75047518 S (barrier_time_taken_ns );
75057519 S (barrier_serial );
75067520 S (gc_barrier_time_taken_ns );
@@ -7511,6 +7525,17 @@ setup_gc_stat_symbols(void)
75117525
75127526 S (fstring_table_size );
75137527 S (fstring_table_capacity );
7528+
7529+ #if CC_TBL_STATS
7530+ S (cc_table_duplications );
7531+ S (cc_table_creations );
7532+ S (cc_invalidations );
7533+ S (cc_table_cme_evictions );
7534+ S (cc_table_frees );
7535+ S (cc_table_duplications_unshareable_singletons );
7536+ #endif
7537+ // /Added by ractor team
7538+
75147539#if RGENGC_PROFILE
75157540 S (total_generated_normal_object_count );
75167541 S (total_generated_shady_object_count );
@@ -7589,6 +7614,8 @@ rb_gc_impl_stat(void *objspace_ptr, VALUE hash_or_sym)
75897614 SET (old_objects , objspace -> rgengc .old_objects );
75907615 SET (old_objects_limit , objspace -> rgengc .old_objects_limit );
75917616
7617+ // Added by ractor team
7618+
75927619 SET (barrier_time_taken_ns , rb_barrier_time_taken_ns );
75937620 SET (barrier_serial , vm -> ractor .sched .barrier_serial );
75947621 SET (gc_barrier_time_taken_ns , rb_gc_barrier_time_taken_ns );
@@ -7600,6 +7627,17 @@ rb_gc_impl_stat(void *objspace_ptr, VALUE hash_or_sym)
76007627 SET (fstring_table_size , rb_fstring_table_size ());
76017628 SET (fstring_table_capacity , rb_fstring_table_capacity ());
76027629
7630+ #if CC_TBL_STATS
7631+ SET (cc_table_duplications , rb_cc_tbl_duplications );
7632+ SET (cc_table_creations , rb_cc_tbl_creations );
7633+ SET (cc_invalidations , rb_cc_invalidations );
7634+ SET (cc_table_cme_evictions , rb_cc_tbl_cme_evictions );
7635+ SET (cc_table_frees , rb_cc_tbl_frees );
7636+ SET (cc_table_duplications_unshareable_singletons , rb_cc_tbl_duplications_unshareable_singletons );
7637+ #endif
7638+
7639+ // /Added by ractor team
7640+
76037641#if RGENGC_ESTIMATE_OLDMALLOC
76047642 SET (oldmalloc_increase_bytes , objspace -> rgengc .oldmalloc_increase );
76057643 SET (oldmalloc_increase_bytes_limit , objspace -> rgengc .oldmalloc_increase_limit );
0 commit comments