< prev index next >

src/share/vm/gc/serial/tenuredGeneration.cpp

Print this page
rev 8456 : GenerationRemovalPart6
rev 8457 : [mq]: increment

@@ -136,11 +136,11 @@
 
 void TenuredGeneration::update_gc_stats(Generation* current_generation,
                                         bool full) {
   // If the young generation has been collected, gather any statistics
   // that are of interest at this point.
-  bool current_is_young = (current_generation == GenCollectedHeap::heap()->young_gen());
+  bool current_is_young = GenCollectedHeap::heap()->is_young_gen(current_generation);
   if (!full && current_is_young) {
     // Calculate size of data promoted from the younger generations
     // before doing the collection.
     size_t used_before_gc = used();
 
< prev index next >