mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8210864: Reduce the use of metaspaceShared.hpp
Reviewed-by: coleenp, lfoltan
This commit is contained in:
parent
f0108ea40c
commit
1619cbd14b
13 changed files with 56 additions and 17 deletions
|
@ -25,6 +25,7 @@
|
|||
#include "precompiled.hpp"
|
||||
#include "classfile/altHashing.hpp"
|
||||
#include "classfile/javaClasses.inline.hpp"
|
||||
#include "memory/metaspaceShared.inline.hpp"
|
||||
#include "memory/resourceArea.hpp"
|
||||
#include "oops/access.inline.hpp"
|
||||
#include "oops/oop.inline.hpp"
|
||||
|
@ -141,6 +142,12 @@ bool oopDesc::is_unlocked_oop() const {
|
|||
if (!Universe::heap()->is_in_reserved(this)) return false;
|
||||
return mark()->is_unlocked();
|
||||
}
|
||||
|
||||
#if INCLUDE_CDS_JAVA_HEAP
|
||||
bool oopDesc::is_archive_object(oop p) {
|
||||
return MetaspaceShared::is_archive_object(p);
|
||||
}
|
||||
#endif
|
||||
#endif // PRODUCT
|
||||
|
||||
VerifyOopClosure VerifyOopClosure::verify_oop;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue