diff src/share/vm/runtime/virtualspace.hpp @ 12236:c4c768305a8f

8024638: Count and expose the amount of committed memory in the metaspaces Reviewed-by: brutisso, ehelin
author stefank
date Thu, 12 Sep 2013 10:15:54 +0200
parents 4c84d351cca9
children 8c5e6482cbfc
line wrap: on
line diff
--- a/src/share/vm/runtime/virtualspace.hpp	Thu Sep 12 10:15:30 2013 +0200
+++ b/src/share/vm/runtime/virtualspace.hpp	Thu Sep 12 10:15:54 2013 +0200
@@ -183,11 +183,16 @@
   // Destruction
   ~VirtualSpace();
 
-  // Testers (all sizes are byte sizes)
-  size_t committed_size()   const;
-  size_t reserved_size()    const;
+  // Reserved memory
+  size_t reserved_size() const;
+  // Actually committed OS memory
+  size_t actual_committed_size() const;
+  // Memory used/expanded in this virtual space
+  size_t committed_size() const;
+  // Memory left to use/expand in this virtual space
   size_t uncommitted_size() const;
-  bool   contains(const void* p)  const;
+
+  bool   contains(const void* p) const;
 
   // Operations
   // returns true on success, false otherwise