src/share/vm/memory/allocation.cpp

changeset 5321
2b9380b0bf0b
parent 5251
eaf3742822ec
parent 5307
e0c9a1d29eb4
child 5368
cf9d71d3e474
equal deleted inserted replaced
5297:b6d1e42655cd 5321:2b9380b0bf0b
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

mercurial