8230646: Epsilon does not extend TLABs to max size
authorshade
Thu, 05 Sep 2019 19:24:53 +0200
changeset 58021 5f5ca2e02f6e
parent 58019 86b95fc6ca32
child 58022 12885822f0c5
8230646: Epsilon does not extend TLABs to max size Reviewed-by: tschatzl, zgu
src/hotspot/share/gc/epsilon/epsilonHeap.cpp
--- 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() {