mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8016325: JVM hangs verifying system dictionary
Minimize redundant verifications of Klasses. Reviewed-by: hseigel, jmasa
This commit is contained in:
parent
196c8abc3d
commit
39a1c1d6c2
24 changed files with 30 additions and 68 deletions
|
@ -71,13 +71,6 @@ bool MetaspaceObj::is_shared() const {
|
|||
return MetaspaceShared::is_in_shared_space(this);
|
||||
}
|
||||
|
||||
bool MetaspaceObj::is_metadata() const {
|
||||
// GC Verify checks use this in guarantees.
|
||||
// TODO: either replace them with is_metaspace_object() or remove them.
|
||||
// is_metaspace_object() is slower than this test. This test doesn't
|
||||
// seem very useful for metaspace objects anymore though.
|
||||
return !Universe::heap()->is_in_reserved(this);
|
||||
}
|
||||
|
||||
bool MetaspaceObj::is_metaspace_object() const {
|
||||
return Metaspace::contains((void*)this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue