hotspot/src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp
changeset 11636 3c07b54482a5
parent 11174 fccee5238e70
child 11753 c9e420473a11
equal deleted inserted replaced
11635:5a16856f871f 11636:3c07b54482a5
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   293   if (ZapUnusedHeapArea) {
   293   if (ZapUnusedHeapArea) {
   294     // Save information needed to minimize mangling
   294     // Save information needed to minimize mangling
   295     heap->record_gen_tops_before_GC();
   295     heap->record_gen_tops_before_GC();
   296   }
   296   }
   297 
   297 
   298   if (PrintHeapAtGC) {
   298   heap->print_heap_before_gc();
   299     Universe::print_heap_before_gc();
       
   300   }
       
   301 
   299 
   302   assert(!NeverTenure || _tenuring_threshold == markOopDesc::max_age + 1, "Sanity");
   300   assert(!NeverTenure || _tenuring_threshold == markOopDesc::max_age + 1, "Sanity");
   303   assert(!AlwaysTenure || _tenuring_threshold == 0, "Sanity");
   301   assert(!AlwaysTenure || _tenuring_threshold == 0, "Sanity");
   304 
   302 
   305   size_t prev_used = heap->used();
   303   size_t prev_used = heap->used();
   641     HandleMark hm;  // Discard invalid handles created during verification
   639     HandleMark hm;  // Discard invalid handles created during verification
   642     gclog_or_tty->print(" VerifyAfterGC:");
   640     gclog_or_tty->print(" VerifyAfterGC:");
   643     Universe::verify(false);
   641     Universe::verify(false);
   644   }
   642   }
   645 
   643 
   646   if (PrintHeapAtGC) {
   644   heap->print_heap_after_gc();
   647     Universe::print_heap_after_gc();
       
   648   }
       
   649 
   645 
   650   if (ZapUnusedHeapArea) {
   646   if (ZapUnusedHeapArea) {
   651     young_gen->eden_space()->check_mangled_unused_area_complete();
   647     young_gen->eden_space()->check_mangled_unused_area_complete();
   652     young_gen->from_space()->check_mangled_unused_area_complete();
   648     young_gen->from_space()->check_mangled_unused_area_complete();
   653     young_gen->to_space()->check_mangled_unused_area_complete();
   649     young_gen->to_space()->check_mangled_unused_area_complete();