equal
deleted
inserted
replaced
31 #include "gc/shared/cardTableRS.hpp" |
31 #include "gc/shared/cardTableRS.hpp" |
32 #include "gc/shared/genCollectedHeap.hpp" |
32 #include "gc/shared/genCollectedHeap.hpp" |
33 #include "gc/shared/referenceProcessor.hpp" |
33 #include "gc/shared/referenceProcessor.hpp" |
34 #include "gc/shared/taskqueue.hpp" |
34 #include "gc/shared/taskqueue.hpp" |
35 #include "logging/log.hpp" |
35 #include "logging/log.hpp" |
|
36 #include "logging/logConfiguration.hpp" |
|
37 #include "logging/logStream.hpp" |
36 #include "logging/logTag.hpp" |
38 #include "logging/logTag.hpp" |
37 #include "logging/logConfiguration.hpp" |
|
38 #include "memory/allocation.inline.hpp" |
39 #include "memory/allocation.inline.hpp" |
39 #include "memory/universe.inline.hpp" |
40 #include "memory/universe.inline.hpp" |
40 #include "oops/oop.inline.hpp" |
41 #include "oops/oop.inline.hpp" |
41 #include "prims/jvmtiExport.hpp" |
42 #include "prims/jvmtiExport.hpp" |
42 #include "runtime/arguments.hpp" |
43 #include "runtime/arguments.hpp" |
4174 } |
4175 } |
4175 |
4176 |
4176 if (_gc_log_filename != NULL) { |
4177 if (_gc_log_filename != NULL) { |
4177 // -Xloggc was used to specify a filename |
4178 // -Xloggc was used to specify a filename |
4178 const char* gc_conf = PrintGCDetails ? "gc*" : "gc"; |
4179 const char* gc_conf = PrintGCDetails ? "gc*" : "gc"; |
4179 return LogConfiguration::parse_log_arguments(_gc_log_filename, gc_conf, NULL, NULL, NULL); |
4180 |
|
4181 LogTarget(Error, logging) target; |
|
4182 LogStreamCHeap errstream(target); |
|
4183 return LogConfiguration::parse_log_arguments(_gc_log_filename, gc_conf, NULL, NULL, &errstream); |
4180 } else if (PrintGC || PrintGCDetails) { |
4184 } else if (PrintGC || PrintGCDetails) { |
4181 LogConfiguration::configure_stdout(LogLevel::Info, !PrintGCDetails, LOG_TAGS(gc)); |
4185 LogConfiguration::configure_stdout(LogLevel::Info, !PrintGCDetails, LOG_TAGS(gc)); |
4182 } |
4186 } |
4183 return true; |
4187 return true; |
4184 } |
4188 } |