mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6962589: remove breadth first scanning code from parallel gc
Remove the breadth-first copying order from ParallelScavenge and use depth-first by default. Reviewed-by: jcoomes, ysr, johnc
This commit is contained in:
parent
3a2b2b4fd8
commit
38ab95c64b
30 changed files with 63 additions and 541 deletions
|
@ -24,15 +24,6 @@
|
|||
|
||||
// ParallelScavengeHeap methods
|
||||
|
||||
inline void oopDesc::copy_contents(PSPromotionManager* pm) {
|
||||
Klass* klass = blueprint();
|
||||
if (!klass->oop_is_typeArray()) {
|
||||
// It might contain oops beyond the header, so take the virtual call.
|
||||
klass->oop_copy_contents(pm, this);
|
||||
}
|
||||
// Else skip it. The typeArrayKlass in the header never needs scavenging.
|
||||
}
|
||||
|
||||
inline void oopDesc::push_contents(PSPromotionManager* pm) {
|
||||
Klass* klass = blueprint();
|
||||
if (!klass->oop_is_typeArray()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue