< prev index next >

src/hotspot/share/logging/logDecorations.hpp

Print this page
rev 55638 : 8227527: LogDecorations should lazily resolve host name
Reviewed-by: gziemski

@@ -36,12 +36,13 @@
   char* _decoration_offset[LogDecorators::Count];
   LogLevelType _level;
   const LogTagSet& _tagset;
   jlong _millis;
   static jlong _vm_start_time_millis;
-  static const char* _host_name;
+  static const char* volatile _host_name;
 
+  const char* host_name();
   jlong java_millis();
   void create_decorations(const LogDecorators& decorators);
 
 #define DECORATOR(name, abbr) char* create_##name##_decoration(char* pos);
   DECORATOR_LIST
< prev index next >