< prev index next >

src/share/vm/oops/symbol.cpp

Print this page

        

*** 40,63 **** byte_at_put(i, name[i]); } } void* Symbol::operator new(size_t sz, int len, TRAPS) throw() { ! int alloc_size = size(len)*HeapWordSize; address res = (address) AllocateHeap(alloc_size, mtSymbol); return res; } void* Symbol::operator new(size_t sz, int len, Arena* arena, TRAPS) throw() { ! int alloc_size = size(len)*HeapWordSize; ! address res = (address)arena->Amalloc(alloc_size); return res; } void* Symbol::operator new(size_t sz, int len, ClassLoaderData* loader_data, TRAPS) throw() { address res; - int alloc_size = size(len)*HeapWordSize; res = (address) Metaspace::allocate(loader_data, size(len), true, MetaspaceObj::SymbolType, CHECK_NULL); return res; } --- 40,62 ---- byte_at_put(i, name[i]); } } void* Symbol::operator new(size_t sz, int len, TRAPS) throw() { ! int alloc_size = size(len)*wordSize; address res = (address) AllocateHeap(alloc_size, mtSymbol); return res; } void* Symbol::operator new(size_t sz, int len, Arena* arena, TRAPS) throw() { ! int alloc_size = size(len)*wordSize; ! address res = (address)arena->Amalloc_4(alloc_size); return res; } void* Symbol::operator new(size_t sz, int len, ClassLoaderData* loader_data, TRAPS) throw() { address res; res = (address) Metaspace::allocate(loader_data, size(len), true, MetaspaceObj::SymbolType, CHECK_NULL); return res; }
< prev index next >