hotspot/src/share/vm/memory/allocation.cpp
changeset 18439 725ce18186b3
parent 17858 c292f8791cca
child 18453 4056af328b00
equal deleted inserted replaced
18438:9ea6bbfe0b83 18439:725ce18186b3
    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