src/hotspot/share/gc/epsilon/epsilonHeap.cpp
changeset 58021 5f5ca2e02f6e
parent 58015 dd84de796f2c
child 58679 9c3209ff7550
child 59153 1152339c298a
equal deleted inserted replaced
58019:86b95fc6ca32 58021:5f5ca2e02f6e
   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()");