hotspot/src/share/vm/gc/shared/genCollectedHeap.cpp
changeset 33580 c2d95df2c54e
parent 33230 23bb11a5cf4e
child 34133 5d761539ac2c
equal deleted inserted replaced
33579:01ade4446d96 33580:c2d95df2c54e
   458     size_t gch_prev_used = used();
   458     size_t gch_prev_used = used();
   459     bool run_verification = total_collections() >= VerifyGCStartAt;
   459     bool run_verification = total_collections() >= VerifyGCStartAt;
   460 
   460 
   461     bool prepared_for_verification = false;
   461     bool prepared_for_verification = false;
   462     bool collected_old = false;
   462     bool collected_old = false;
   463     bool old_collects_young = complete &&
   463     bool old_collects_young = complete && !ScavengeBeforeFullGC;
   464                               _old_gen->full_collects_young_generation();
   464 
   465     if (!old_collects_young &&
   465     if (!old_collects_young && _young_gen->should_collect(full, size, is_tlab)) {
   466         _young_gen->should_collect(full, size, is_tlab)) {
       
   467       if (run_verification && VerifyGCLevel <= 0 && VerifyBeforeGC) {
   466       if (run_verification && VerifyGCLevel <= 0 && VerifyBeforeGC) {
   468         prepare_for_verify();
   467         prepare_for_verify();
   469         prepared_for_verification = true;
   468         prepared_for_verification = true;
   470       }
   469       }
   471 
   470 
  1105   CompactPoint cp(_old_gen);
  1104   CompactPoint cp(_old_gen);
  1106   _old_gen->prepare_for_compaction(&cp);
  1105   _old_gen->prepare_for_compaction(&cp);
  1107   _young_gen->prepare_for_compaction(&cp);
  1106   _young_gen->prepare_for_compaction(&cp);
  1108 }
  1107 }
  1109 
  1108 
  1110 GCStats* GenCollectedHeap::gc_stats(Generation* gen) const {
       
  1111   return gen->gc_stats();
       
  1112 }
       
  1113 
       
  1114 void GenCollectedHeap::verify(bool silent, VerifyOption option /* ignored */) {
  1109 void GenCollectedHeap::verify(bool silent, VerifyOption option /* ignored */) {
  1115   if (!silent) {
  1110   if (!silent) {
  1116     gclog_or_tty->print("%s", _old_gen->name());
  1111     gclog_or_tty->print("%s", _old_gen->name());
  1117     gclog_or_tty->print(" ");
  1112     gclog_or_tty->print(" ");
  1118   }
  1113   }