src/hotspot/share/oops/symbol.cpp
changeset 54927 1512d88b24c6
parent 54847 59ea39bb2809
child 58015 dd84de796f2c
equal deleted inserted replaced
54926:d4e7ccaf1445 54927:1512d88b24c6
    72 void Symbol::operator delete(void *p) {
    72 void Symbol::operator delete(void *p) {
    73   assert(((Symbol*)p)->refcount() == 0, "should not call this");
    73   assert(((Symbol*)p)->refcount() == 0, "should not call this");
    74   FreeHeap(p);
    74   FreeHeap(p);
    75 }
    75 }
    76 
    76 
       
    77 void Symbol::set_permanent() {
       
    78   // This is called at a safepoint during dumping of a dynamic CDS archive.
       
    79   assert(SafepointSynchronize::is_at_safepoint(), "must be at a safepoint");
       
    80   _length_and_refcount =  pack_length_and_refcount(length(), PERM_REFCOUNT);
       
    81 }
       
    82 
       
    83 
    77 // ------------------------------------------------------------------
    84 // ------------------------------------------------------------------
    78 // Symbol::starts_with
    85 // Symbol::starts_with
    79 //
    86 //
    80 // Tests if the symbol starts with the specified prefix of the given
    87 // Tests if the symbol starts with the specified prefix of the given
    81 // length.
    88 // length.