< prev index next >

src/hotspot/share/runtime/os.cpp

Print this page

        

@@ -666,11 +666,11 @@
     size_t words = (alloc_size / BytesPerWord);
 
     if ((cur_malloc_words + words) > MallocMaxTestWords) {
       return true;
     }
-    Atomic::add(words, &cur_malloc_words);
+    Atomic::add(&cur_malloc_words, words);
   }
   return false;
 }
 
 void* os::malloc(size_t size, MEMFLAGS flags) {
< prev index next >