mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8250989: Consolidate buffer allocation code for CDS static/dynamic dumping
Reviewed-by: ccheung, coleenp
This commit is contained in:
parent
0e18634b6a
commit
c5ff454481
42 changed files with 701 additions and 918 deletions
|
@ -143,6 +143,14 @@ bool oopDesc::has_klass_gap() {
|
|||
return UseCompressedClassPointers;
|
||||
}
|
||||
|
||||
#if INCLUDE_CDS_JAVA_HEAP
|
||||
void oopDesc::set_narrow_klass(narrowKlass nk) {
|
||||
assert(DumpSharedSpaces, "Used by CDS only. Do not abuse!");
|
||||
assert(UseCompressedClassPointers, "must be");
|
||||
_metadata._compressed_klass = nk;
|
||||
}
|
||||
#endif
|
||||
|
||||
void* oopDesc::load_klass_raw(oop obj) {
|
||||
if (UseCompressedClassPointers) {
|
||||
narrowKlass narrow_klass = obj->_metadata._compressed_klass;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue