Skip to content

Commit efa4871

Browse files
committed
Fix building mono with old boehm
1 parent dc58c2b commit efa4871

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

mono/metadata/boehm-gc.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,19 +422,29 @@ mono_gc_get_heap_size (void)
422422
int64_t
423423
mono_gc_get_max_time_slice_ns()
424424
{
425+
#if HAVE_BDWGC_GC
425426
return GC_get_time_limit() * 1000000;
427+
#else
428+
return 0;
429+
#endif
426430
}
427431

428432
void
429433
mono_gc_set_max_time_slice_ns(int64_t maxTimeSlice)
430434
{
435+
#if HAVE_BDWGC_GC
431436
GC_set_time_limit(maxTimeSlice / 1000000);
437+
#endif
432438
}
433439

434440
MonoBoolean
435441
mono_gc_is_incremental()
436442
{
443+
#if HAVE_BDWGC_GC
437444
return GC_is_incremental_mode();
445+
#else
446+
return FALSE;
447+
#endif
438448
}
439449

440450
gboolean

0 commit comments

Comments
 (0)