mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive
8185924: G1NoteEndOfConcMarkClosure::doHeapRegion() does not do remembered set cleanup work for archive region Shared class' constant pool resolved_references array is cached. Co-authored-by: Thomas Schatzl <thomas.schatzl@oracle.com> Reviewed-by: coleenp, iklam, tschatzl
This commit is contained in:
parent
85fedbbb12
commit
4a77945c89
36 changed files with 931 additions and 418 deletions
|
@ -590,6 +590,9 @@ void oopDesc::forward_to(oop p) {
|
|||
"forwarding to something not aligned");
|
||||
assert(Universe::heap()->is_in_reserved(p),
|
||||
"forwarding to something not in heap");
|
||||
assert(!is_archive_object(oop(this)) &&
|
||||
!is_archive_object(p),
|
||||
"forwarding archive object");
|
||||
markOop m = markOopDesc::encode_pointer_as_mark(p);
|
||||
assert(m->decode_pointer() == p, "encoding must be reversable");
|
||||
set_mark(m);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue