src/hotspot/share/gc/epsilon/epsilonHeap.cpp
changeset 58021 5f5ca2e02f6e
parent 58015 dd84de796f2c
child 58679 9c3209ff7550
child 59153 1152339c298a
--- a/src/hotspot/share/gc/epsilon/epsilonHeap.cpp	Thu Sep 05 13:56:17 2019 +0200
+++ b/src/hotspot/share/gc/epsilon/epsilonHeap.cpp	Thu Sep 05 19:24:53 2019 +0200
@@ -110,8 +110,8 @@
 
 size_t EpsilonHeap::unsafe_max_tlab_alloc(Thread* thr) const {
   // Return max allocatable TLAB size, and let allocation path figure out
-  // the actual TLAB allocation size.
-  return _max_tlab_size;
+  // the actual allocation size. Note: result should be in bytes.
+  return _max_tlab_size * HeapWordSize;
 }
 
 EpsilonHeap* EpsilonHeap::heap() {