changeset 50567:aa04bf7b99bd

8202591: Remove usage of CMSEdenChunksRecordAlways in defNewGeneration.cpp Reviewed-by: eosterlund, kbarrett
author stefank
date Mon, 07 May 2018 14:42:00 +0200
parents bcf41be8ea14
children 6be313c6c250
files src/hotspot/share/gc/serial/defNewGeneration.cpp
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/serial/defNewGeneration.cpp	Mon May 07 10:36:38 2018 +0200
+++ b/src/hotspot/share/gc/serial/defNewGeneration.cpp	Mon May 07 14:42:00 2018 +0200
@@ -1006,11 +1006,9 @@
   // have to use it here, as well.
   HeapWord* result = eden()->par_allocate(word_size);
   if (result != NULL) {
-#if INCLUDE_CMSGC
-    if (CMSEdenChunksRecordAlways && _old_gen != NULL) {
+    if (_old_gen != NULL) {
       _old_gen->sample_eden_chunk();
     }
-#endif
   } else {
     // If the eden is full and the last collection bailed out, we are running
     // out of heap space, and we try to allocate the from-space, too.
@@ -1024,11 +1022,9 @@
 HeapWord* DefNewGeneration::par_allocate(size_t word_size,
                                          bool is_tlab) {
   HeapWord* res = eden()->par_allocate(word_size);
-#if INCLUDE_CMSGC
-  if (CMSEdenChunksRecordAlways && _old_gen != NULL) {
+  if (_old_gen != NULL) {
     _old_gen->sample_eden_chunk();
   }
-#endif
   return res;
 }