< prev index next >

src/share/vm/gc/parallel/adjoiningGenerations.cpp

Print this page
rev 13113 : imported patch 8181917-refactor-ul-logstream

*** 26,35 **** --- 26,36 ---- #include "gc/parallel/adjoiningGenerations.hpp" #include "gc/parallel/adjoiningVirtualSpaces.hpp" #include "gc/parallel/generationSizer.hpp" #include "gc/parallel/parallelScavengeHeap.hpp" #include "logging/log.hpp" + #include "logging/logStream.hpp" #include "memory/resourceArea.hpp" #include "utilities/ostream.hpp" // If boundary moving is being used, create the young gen and old // gen with ASPSYoungGen and ASPSOldGen, respectively. Revert to
*** 126,147 **** } log.debug("Before expansion of %s gen with boundary move", old ? "old" : "young"); log.debug(" Requested change: " SIZE_FORMAT_HEX " Attempted change: " SIZE_FORMAT_HEX, expand_in_bytes, change_in_bytes); ResourceMark rm; ! ParallelScavengeHeap::heap()->print_on(log.debug_stream()); log.debug(" PS%sGen max size: " SIZE_FORMAT "K", old ? "Old" : "Young", max_size/K); } void log_after_expansion(bool old, size_t max_size) { Log(heap, ergo) log; if (!log.is_debug()) { return; } log.debug("After expansion of %s gen with boundary move", old ? "old" : "young"); ResourceMark rm; ! ParallelScavengeHeap::heap()->print_on(log.debug_stream()); log.debug(" PS%sGen max size: " SIZE_FORMAT "K", old ? "Old" : "Young", max_size/K); } // Make checks on the current sizes of the generations and // the constraints on the sizes of the generations. Push --- 127,150 ---- } log.debug("Before expansion of %s gen with boundary move", old ? "old" : "young"); log.debug(" Requested change: " SIZE_FORMAT_HEX " Attempted change: " SIZE_FORMAT_HEX, expand_in_bytes, change_in_bytes); ResourceMark rm; ! LogStream ls(log.debug()); ! ParallelScavengeHeap::heap()->print_on(&ls); log.debug(" PS%sGen max size: " SIZE_FORMAT "K", old ? "Old" : "Young", max_size/K); } void log_after_expansion(bool old, size_t max_size) { Log(heap, ergo) log; if (!log.is_debug()) { return; } log.debug("After expansion of %s gen with boundary move", old ? "old" : "young"); ResourceMark rm; ! LogStream ls(log.debug()); ! ParallelScavengeHeap::heap()->print_on(&ls); log.debug(" PS%sGen max size: " SIZE_FORMAT "K", old ? "Old" : "Young", max_size/K); } // Make checks on the current sizes of the generations and // the constraints on the sizes of the generations. Push
< prev index next >