src/hotspot/share/runtime/threadHeapSampler.cpp
changeset 54659 62d6baca22fc
parent 52131 e9727e6b5fc1
child 59247 56bf71d64d51
--- a/src/hotspot/share/runtime/threadHeapSampler.cpp	Tue Apr 30 12:53:32 2019 -0700
+++ b/src/hotspot/share/runtime/threadHeapSampler.cpp	Tue Apr 30 15:39:42 2019 -0700
@@ -121,11 +121,6 @@
   }
 
   pick_next_geometric_sample();
-
-  // Try to correct sample size by removing extra space from last allocation.
-  if (overflowed_bytes > 0 && _bytes_until_sample > overflowed_bytes) {
-    _bytes_until_sample -= overflowed_bytes;
-  }
 }
 
 void ThreadHeapSampler::check_for_sampling(oop obj, size_t allocation_size, size_t bytes_since_allocation) {