< prev index next >

src/hotspot/share/logging/logDecorations.cpp

Print this page

        

@@ -42,11 +42,11 @@
 void LogDecorations::initialize(jlong vm_start_time) {
   _vm_start_time_millis = vm_start_time;
 }
 
 const char* LogDecorations::host_name() {
-  const char* host_name = OrderAccess::load_acquire(&_host_name);
+  const char* host_name = Atomic::load_acquire(&_host_name);
   if (host_name == NULL) {
     char buffer[1024];
     if (os::get_host_name(buffer, sizeof(buffer))) {
       host_name = os::strdup_check_oom(buffer);
       const char* old_value = Atomic::cmpxchg(host_name, &_host_name, (const char*)NULL);
< prev index next >