mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-25 01:30:10 +00:00
8061259: ParNew promotion failed is serialized on a lock
Reviewed-by: kbarrett, brutisso
This commit is contained in:
parent
71d4cfb1ad
commit
788b0d89f8
@ -1194,8 +1194,10 @@ oop ParNewGeneration::copy_to_survivor_space(
|
||||
return real_forwardee(old);
|
||||
}
|
||||
|
||||
new_obj = _next_gen->par_promote(par_scan_state->thread_num(),
|
||||
old, m, sz);
|
||||
if (!_promotion_failed) {
|
||||
new_obj = _next_gen->par_promote(par_scan_state->thread_num(),
|
||||
old, m, sz);
|
||||
}
|
||||
|
||||
if (new_obj == NULL) {
|
||||
// promotion failed, forward to self
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user