hotspot/src/share/vm/runtime/perfData.hpp
changeset 34195 89011d12ebd3
parent 32614 b7b2407bc7e5
child 46630 75aa3e39d02c
--- a/hotspot/src/share/vm/runtime/perfData.hpp	Mon Nov 02 15:52:37 2015 +0100
+++ b/hotspot/src/share/vm/runtime/perfData.hpp	Wed Nov 18 03:03:43 2015 +0300
@@ -424,6 +424,7 @@
   public:
     inline void inc() { (*(jlong*)_valuep)++; }
     inline void inc(jlong val) { (*(jlong*)_valuep) += val; }
+    inline void dec(jlong val) { inc(-val); }
     inline void add(jlong val) { (*(jlong*)_valuep) += val; }
     void clear_sample_helper() { _sample_helper = NULL; }
 };