< prev index next >

src/hotspot/os/linux/os_linux.cpp

Print this page

        

@@ -2811,11 +2811,11 @@
   if (!UseOprofile) {
     return;
   }
 
   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);
   unlink(buf);
 
< prev index next >