Skip to content

Commit

Permalink
Removing unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
udesou committed Jan 29, 2024
1 parent 755bc7b commit 496eb2f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/global_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ use std::sync::Mutex;
pub struct GlobalState {
/// Whether MMTk is now ready for collection. This is set to true when initialize_collection() is called.
pub(crate) initialized: AtomicBool,
/// Should we trigger a GC when the heap is full? It seems this should always be true. However, we allow
/// bindings to temporarily disable GC, at which point, we do not trigger GC even if the heap is full.
pub(crate) trigger_gc_when_heap_is_full: AtomicBool,
/// The current GC status.
pub(crate) gc_status: Mutex<GcStatus>,
/// Is the current GC an emergency collection? Emergency means we may run out of memory soon, and we should
Expand Down Expand Up @@ -197,7 +194,6 @@ impl Default for GlobalState {
fn default() -> Self {
Self {
initialized: AtomicBool::new(false),
trigger_gc_when_heap_is_full: AtomicBool::new(true),
gc_status: Mutex::new(GcStatus::NotInGC),
stacks_prepared: AtomicBool::new(false),
emergency_collection: AtomicBool::new(false),
Expand Down

0 comments on commit 496eb2f

Please sign in to comment.