equal
deleted
inserted
replaced
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 |