File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -454,6 +454,19 @@ mono_gc_is_incremental()
454
454
#endif
455
455
}
456
456
457
+ void
458
+ mono_gc_set_incremental (MonoBoolean value )
459
+ {
460
+ #if HAVE_BDWGC_GC
461
+ if (GC_is_incremental_mode () == value )
462
+ return ;
463
+ if (value )
464
+ GC_enable_incremental ();
465
+ else
466
+ GC_disable_incremental ();
467
+ #endif
468
+ }
469
+
457
470
gboolean
458
471
mono_gc_is_gc_thread (void )
459
472
{
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ MONO_API int64_t mono_gc_get_max_time_slice_ns ();
114
114
MONO_API void mono_gc_set_max_time_slice_ns (int64_t maxTimeSlice );
115
115
MONO_API MonoBoolean mono_gc_pending_finalizers (void );
116
116
MONO_API MonoBoolean mono_gc_is_incremental (void );
117
+ MONO_API void mono_gc_set_incremental (MonoBoolean value );
117
118
MONO_API void mono_gc_finalize_notify (void );
118
119
MONO_API int mono_gc_invoke_finalizers (void );
119
120
/* heap walking is only valid in the pre-stop-world event callback */
Original file line number Diff line number Diff line change @@ -108,6 +108,11 @@ mono_gc_is_incremental()
108
108
return FALSE;
109
109
}
110
110
111
+ void
112
+ mono_gc_set_incremental (MonoBoolean value )
113
+ {
114
+ }
115
+
111
116
gboolean
112
117
mono_gc_is_gc_thread (void )
113
118
{
Original file line number Diff line number Diff line change @@ -2843,6 +2843,11 @@ mono_gc_is_incremental()
2843
2843
return FALSE;
2844
2844
}
2845
2845
2846
+ void
2847
+ mono_gc_set_incremental (MonoBoolean value )
2848
+ {
2849
+ }
2850
+
2846
2851
void
2847
2852
mono_gc_set_max_time_slice_ns (int64_t maxTimeSlice )
2848
2853
{
You can’t perform that action at this time.
0 commit comments