check black holes before doing GC in scheduleDoHeapProfile()