< prev index next >

src/share/vm/logging/logOutput.cpp

Print this page
rev 8933 : 8046148.01


  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 #include "precompiled.hpp"
  25 #include "logging/logFileStreamOutput.hpp"
  26 #include "logging/logOutput.hpp"
  27 #include "memory/allocation.inline.hpp"
  28 #include "runtime/os.inline.hpp"
  29 
  30 LogOutput* const LogOutput::Stdout = &LogStdoutOutput::_instance;
  31 LogOutput* const LogOutput::Stderr = &LogStderrOutput::_instance;
  32 
  33 LogOutput::~LogOutput() {
  34   os::free(_config_string);
  35 }
  36 
  37 void LogOutput::set_config_string(const char* string) {
  38   os::free(_config_string);
  39   _config_string = os::strdup_check_oom(string, mtInternal);
  40 }


  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 #include "precompiled.hpp"
  25 #include "logging/logFileStreamOutput.hpp"
  26 #include "logging/logOutput.hpp"
  27 #include "memory/allocation.inline.hpp"
  28 #include "runtime/os.inline.hpp"
  29 
  30 LogOutput* const LogOutput::Stdout = &LogStdoutOutput::_instance;
  31 LogOutput* const LogOutput::Stderr = &LogStderrOutput::_instance;
  32 
  33 LogOutput::~LogOutput() {
  34   os::free(_config_string);
  35 }
  36 
  37 void LogOutput::set_config_string(const char* string) {
  38   os::free(_config_string);
  39   _config_string = os::strdup_check_oom(string, mtLogging);
  40 }
< prev index next >