mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8262973: Verify ParCompactionManager instance in PCAdjustPointerClosure
Reviewed-by: kbarrett, tschatzl
This commit is contained in:
parent
d91550efad
commit
9730266d02
5 changed files with 47 additions and 29 deletions
|
@ -179,3 +179,19 @@ void ParCompactionManager::push_shadow_region(size_t shadow_region) {
|
|||
void ParCompactionManager::remove_all_shadow_regions() {
|
||||
_shadow_region_array->clear();
|
||||
}
|
||||
|
||||
#ifdef ASSERT
|
||||
void ParCompactionManager::verify_all_marking_stack_empty() {
|
||||
uint parallel_gc_threads = ParallelGCThreads;
|
||||
for (uint i = 0; i <= parallel_gc_threads; i++) {
|
||||
assert(_manager_array[i]->marking_stacks_empty(), "Marking stack should be empty");
|
||||
}
|
||||
}
|
||||
|
||||
void ParCompactionManager::verify_all_region_stack_empty() {
|
||||
uint parallel_gc_threads = ParallelGCThreads;
|
||||
for (uint i = 0; i <= parallel_gc_threads; i++) {
|
||||
assert(_manager_array[i]->region_stack()->is_empty(), "Region stack should be empty");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue