Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/allocation.cpp @ 11034:e0c9a1d29eb4
8016325: JVM hangs verifying system dictionary
Summary: Minimize redundant verifications of Klasses.
Reviewed-by: hseigel, jmasa
author | coleenp |
---|---|
date | Mon, 24 Jun 2013 18:55:46 -0400 |
parents | a1ebd310d5c1 |
children | 2b9380b0bf0b |
comparison
equal
deleted
inserted
replaced
11033:d9eed26d638a | 11034:e0c9a1d29eb4 |
---|---|
69 | 69 |
70 bool MetaspaceObj::is_shared() const { | 70 bool MetaspaceObj::is_shared() const { |
71 return MetaspaceShared::is_in_shared_space(this); | 71 return MetaspaceShared::is_in_shared_space(this); |
72 } | 72 } |
73 | 73 |
74 bool MetaspaceObj::is_metadata() const { | |
75 // GC Verify checks use this in guarantees. | |
76 // TODO: either replace them with is_metaspace_object() or remove them. | |
77 // is_metaspace_object() is slower than this test. This test doesn't | |
78 // seem very useful for metaspace objects anymore though. | |
79 return !Universe::heap()->is_in_reserved(this); | |
80 } | |
81 | 74 |
82 bool MetaspaceObj::is_metaspace_object() const { | 75 bool MetaspaceObj::is_metaspace_object() const { |
83 return Metaspace::contains((void*)this); | 76 return Metaspace::contains((void*)this); |
84 } | 77 } |
85 | 78 |