36 } |
36 } |
37 } |
37 } |
38 |
38 |
39 void* Symbol::operator new(size_t sz, int len, TRAPS) { |
39 void* Symbol::operator new(size_t sz, int len, TRAPS) { |
40 int alloc_size = object_size(len)*HeapWordSize; |
40 int alloc_size = object_size(len)*HeapWordSize; |
41 address res = (address) AllocateHeap(alloc_size, "symbol"); |
41 address res = (address) AllocateHeap(alloc_size, mtSymbol); |
42 DEBUG_ONLY(set_allocation_type(res, ResourceObj::C_HEAP);) |
42 DEBUG_ONLY(set_allocation_type(res, ResourceObj::C_HEAP);) |
43 return res; |
43 return res; |
44 } |
44 } |
45 |
45 |
46 void* Symbol::operator new(size_t sz, int len, Arena* arena, TRAPS) { |
46 void* Symbol::operator new(size_t sz, int len, Arena* arena, TRAPS) { |