< prev index next > src/hotspot/share/gc/parallel/psCompactionManager.cpp
Print this page
/*
- * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
ParMarkBitMap* ParCompactionManager::_mark_bitmap = NULL;
RegionTaskQueueSet* ParCompactionManager::_region_array = NULL;
GrowableArray<size_t >* ParCompactionManager::_shadow_region_array = NULL;
Monitor* ParCompactionManager::_shadow_region_monitor = NULL;
- ParCompactionManager::ParCompactionManager() :
- _action(CopyAndUpdate) {
+ ParCompactionManager::ParCompactionManager() {
ParallelScavengeHeap* heap = ParallelScavengeHeap::heap();
_old_gen = heap->old_gen();
_start_array = old_gen()->start_array();
for (uint i=0; i<=parallel_gc_threads; i++) {
_manager_array[i]->reset_bitmap_query_cache();
}
}
- bool ParCompactionManager::should_update() {
- assert(action() != NotValid, "Action is not set");
- return (action() == ParCompactionManager::Update) ||
- (action() == ParCompactionManager::CopyAndUpdate) ||
- (action() == ParCompactionManager::UpdateAndCopy);
- }
-
- bool ParCompactionManager::should_copy() {
- assert(action() != NotValid, "Action is not set");
- return (action() == ParCompactionManager::Copy) ||
- (action() == ParCompactionManager::CopyAndUpdate) ||
- (action() == ParCompactionManager::UpdateAndCopy);
- }
ParCompactionManager*
ParCompactionManager::gc_thread_compaction_manager(uint index) {
assert(index < ParallelGCThreads, "index out of range");
assert(_manager_array != NULL, "Sanity");
_shadow_region_array->push(shadow_region);
}
void ParCompactionManager::remove_all_shadow_regions() {
_shadow_region_array->clear();
- }
+ }
< prev index next >