mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
6696264: assert("narrow oop can never be zero") for GCBasher & ParNewGC
Decouple set_klass() with zeroing the gap when compressed. Reviewed-by: kvn, ysr, jrose
This commit is contained in:
parent
1f9e095ee3
commit
646ceb4a45
12 changed files with 67 additions and 20 deletions
|
@ -3222,7 +3222,8 @@ void TemplateTable::_new() {
|
|||
__ set((intptr_t)markOopDesc::prototype(), G4_scratch);
|
||||
}
|
||||
__ st_ptr(G4_scratch, RallocatedObject, oopDesc::mark_offset_in_bytes()); // mark
|
||||
__ store_klass(RinstanceKlass, RallocatedObject); // klass
|
||||
__ store_klass_gap(G0, RallocatedObject); // klass gap if compressed
|
||||
__ store_klass(RinstanceKlass, RallocatedObject); // klass (last for cms)
|
||||
|
||||
{
|
||||
SkipIfEqual skip_if(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue