< prev index next >

src/hotspot/share/oops/symbol.hpp

Print this page

        

*** 130,141 **** assert(index >=0 && index < length(), "symbol index overflow"); _body[index] = value; } Symbol(const u1* name, int length, int refcount); ! void* operator new(size_t size, int len) throw(); ! void* operator new(size_t size, int len, Arena* arena) throw(); void operator delete(void* p); static int extract_length(uint32_t value) { return value >> 16; } static int extract_refcount(uint32_t value) { return value & 0xffff; } --- 130,141 ---- assert(index >=0 && index < length(), "symbol index overflow"); _body[index] = value; } Symbol(const u1* name, int length, int refcount); ! void* operator new(size_t size, int len, TRAPS) throw(); ! void* operator new(size_t size, int len, Arena* arena, TRAPS) throw(); void operator delete(void* p); static int extract_length(uint32_t value) { return value >> 16; } static int extract_refcount(uint32_t value) { return value & 0xffff; }
*** 167,177 **** void increment_refcount(); void decrement_refcount(); bool is_permanent() { return (refcount() == PERM_REFCOUNT); } - void set_permanent(); void make_permanent(); // Function char_at() returns the Symbol's selected u1 byte as a char type. // // Note that all multi-byte chars have the sign bit set on all their bytes. --- 167,176 ----
*** 228,258 **** // String is allocated in resource area if buffer is not provided. // See Klass::external_name() const char* as_klass_external_name() const; const char* as_klass_external_name(char* buf, int size) const; - // Treating the symbol as a signature, print the return - // type to the outputStream. Prints external names as 'double' or - // 'java.lang.Object[][]'. - void print_as_signature_external_return_type(outputStream *os); - // Treating the symbol as a signature, print the parameter types - // seperated by ', ' to the outputStream. Prints external names as - // 'double' or 'java.lang.Object[][]'. - void print_as_signature_external_parameters(outputStream *os); - void metaspace_pointers_do(MetaspaceClosure* it); MetaspaceObj::Type type() const { return SymbolType; } // Printing void print_symbol_on(outputStream* st = NULL) const; void print_utf8_on(outputStream* st) const; void print_on(outputStream* st) const; // First level print void print_value_on(outputStream* st) const; // Second level print. // printing on default output stream ! void print() const; ! void print_value() const; static bool is_valid(Symbol* s); #ifndef PRODUCT // Empty constructor to create a dummy symbol object on stack --- 227,248 ---- // String is allocated in resource area if buffer is not provided. // See Klass::external_name() const char* as_klass_external_name() const; const char* as_klass_external_name(char* buf, int size) const; void metaspace_pointers_do(MetaspaceClosure* it); MetaspaceObj::Type type() const { return SymbolType; } // Printing void print_symbol_on(outputStream* st = NULL) const; void print_utf8_on(outputStream* st) const; void print_on(outputStream* st) const; // First level print void print_value_on(outputStream* st) const; // Second level print. // printing on default output stream ! void print() { print_on(tty); } ! void print_value() { print_value_on(tty); } static bool is_valid(Symbol* s); #ifndef PRODUCT // Empty constructor to create a dummy symbol object on stack
< prev index next >