< prev index next >

src/share/vm/gc/parallel/psScavenge.inline.hpp

Print this page

        

@@ -27,10 +27,11 @@
 
 #include "gc/parallel/cardTableExtension.hpp"
 #include "gc/parallel/parallelScavengeHeap.hpp"
 #include "gc/parallel/psPromotionManager.inline.hpp"
 #include "gc/parallel/psScavenge.hpp"
+#include "logging/log.hpp"
 #include "memory/iterator.hpp"
 #include "utilities/globalDefinitions.hpp"
 
 inline void PSScavenge::save_to_space_top_before_gc() {
   ParallelScavengeHeap* heap = ParallelScavengeHeap::heap();

@@ -136,17 +137,15 @@
   PSScavengeKlassClosure(PSPromotionManager* pm) : _oop_closure(pm) { }
   void do_klass(Klass* klass) {
     // If the klass has not been dirtied we know that there's
     // no references into  the young gen and we can skip it.
 
-    if (TraceScavenge) {
-      ResourceMark rm;
-      gclog_or_tty->print_cr("PSScavengeKlassClosure::do_klass " PTR_FORMAT ", %s, dirty: %s",
+    NOT_PRODUCT(ResourceMark rm);
+    log_develop_trace(gc, scavenge)("PSScavengeKlassClosure::do_klass " PTR_FORMAT ", %s, dirty: %s",
                              p2i(klass),
                              klass->external_name(),
                              klass->has_modified_oops() ? "true" : "false");
-    }
 
     if (klass->has_modified_oops()) {
       // Clean the klass since we're going to scavenge all the metadata.
       klass->clear_modified_oops();
 
< prev index next >