src/hotspot/os/linux/os_linux.cpp
changeset 59249 29b0d0b61615
parent 59062 6530de931b8e
child 59252 623722a6aeb9
--- a/src/hotspot/os/linux/os_linux.cpp	Mon Nov 25 12:30:24 2019 +0100
+++ b/src/hotspot/os/linux/os_linux.cpp	Mon Nov 25 12:31:39 2019 +0100
@@ -2813,7 +2813,7 @@
   }
 
   char buf[PATH_MAX+1];
-  int num = Atomic::add(1, &cnt);
+  int num = Atomic::add(&cnt, 1);
 
   snprintf(buf, sizeof(buf), "%s/hs-vm-%d-%d",
            os::get_temp_directory(), os::current_process_id(), num);