< prev index next >

src/hotspot/share/classfile/classLoaderDataGraph.inline.hpp

Print this page

        

@@ -53,20 +53,20 @@
   Atomic::add(&_num_instance_classes, count);
 }
 
 void ClassLoaderDataGraph::dec_instance_classes(size_t count) {
   assert(count <= _num_instance_classes, "Sanity");
-  Atomic::sub(count, &_num_instance_classes);
+  Atomic::sub(&_num_instance_classes, count);
 }
 
 void ClassLoaderDataGraph::inc_array_classes(size_t count) {
   Atomic::add(&_num_array_classes, count);
 }
 
 void ClassLoaderDataGraph::dec_array_classes(size_t count) {
   assert(count <= _num_array_classes, "Sanity");
-  Atomic::sub(count, &_num_array_classes);
+  Atomic::sub(&_num_array_classes, count);
 }
 
 bool ClassLoaderDataGraph::should_clean_metaspaces_and_reset() {
   // Only clean metaspaces after full GC.
   bool do_cleaning = _safepoint_cleanup_needed;
< prev index next >