src/hotspot/share/memory/metaspace/counter.hpp
branchstuefe-new-metaspace-branch
changeset 59257 990b1fed3b47
parent 58227 0e7d9a23261e
--- a/src/hotspot/share/memory/metaspace/counter.hpp	Sat Nov 23 11:05:16 2019 +0100
+++ b/src/hotspot/share/memory/metaspace/counter.hpp	Mon Nov 25 16:35:14 2019 +0100
@@ -35,10 +35,10 @@
 namespace metaspace {
 
 // A very simple helper class which counts something, offers decrement/increment
-// methods and checks for overflow/underflow on increment/decrement.
+// methods and, on debug, checks for overflow/underflow on increment/decrement.
 //
-// (since we seem to do that alot....)
-
+// Two variants exists, a thread-safe one using atomic counting, a normal one
+//  which does not.
 template <class T>
 class AbstractCounter {