equal
deleted
inserted
replaced
108 return memory_pools; |
108 return memory_pools; |
109 } |
109 } |
110 |
110 |
111 size_t EpsilonHeap::unsafe_max_tlab_alloc(Thread* thr) const { |
111 size_t EpsilonHeap::unsafe_max_tlab_alloc(Thread* thr) const { |
112 // Return max allocatable TLAB size, and let allocation path figure out |
112 // Return max allocatable TLAB size, and let allocation path figure out |
113 // the actual TLAB allocation size. |
113 // the actual allocation size. Note: result should be in bytes. |
114 return _max_tlab_size; |
114 return _max_tlab_size * HeapWordSize; |
115 } |
115 } |
116 |
116 |
117 EpsilonHeap* EpsilonHeap::heap() { |
117 EpsilonHeap* EpsilonHeap::heap() { |
118 CollectedHeap* heap = Universe::heap(); |
118 CollectedHeap* heap = Universe::heap(); |
119 assert(heap != NULL, "Uninitialized access to EpsilonHeap::heap()"); |
119 assert(heap != NULL, "Uninitialized access to EpsilonHeap::heap()"); |