mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6807801: CMS: could save/restore fewer header words during scavenge
Age bits need not enter the mark-word preservation calculus; also affected, in addition to CMS, per CR synopsis above, were ParNew (but not DefNew), ParallelScavenge and G1, albeit to a lesser degree than CMS. Reviewed-by: tonyp, johnc
This commit is contained in:
parent
b2fa4708ad
commit
41bf31bff4
6 changed files with 37 additions and 21 deletions
|
@ -694,6 +694,8 @@ void PSScavenge::clean_up_failed_promotion() {
|
|||
void PSScavenge::oop_promotion_failed(oop obj, markOop obj_mark) {
|
||||
_promotion_failed = true;
|
||||
if (obj_mark->must_be_preserved_for_promotion_failure(obj)) {
|
||||
// Should use per-worker private stakcs hetre rather than
|
||||
// locking a common pair of stacks.
|
||||
ThreadCritical tc;
|
||||
_preserved_oop_stack.push(obj);
|
||||
_preserved_mark_stack.push(obj_mark);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue