Skip to content

Commit b56ab5f

Browse files
committed
memory_manager::gc_poll doesn't need to check is_collection_enabled
1 parent 4501fd6 commit b56ab5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memory_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ pub fn gc_poll<VM: VMBinding>(mmtk: &MMTK<VM>, tls: VMMutatorThread) {
543543
"gc_poll() can only be called by a mutator thread."
544544
);
545545

546-
if VM::VMCollection::is_collection_enabled() && mmtk.gc_trigger.poll(false, None) {
546+
if mmtk.gc_trigger.poll(false, None) {
547547
debug!("Collection required");
548548
if !mmtk.state.is_initialized() {
549549
panic!("GC is not allowed here: collection is not initialized (did you call initialize_collection()?).");

0 commit comments

Comments
 (0)