summaryrefslogtreecommitdiff
path: root/vm/reference/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'vm/reference/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java')
-rw-r--r--vm/reference/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/vm/reference/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java b/vm/reference/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java
index e32e8f0ac..723d4e897 100644
--- a/vm/reference/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java
+++ b/vm/reference/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java
@@ -106,6 +106,15 @@ final class VMMemoryPoolMXBeanImpl
static native MemoryUsage getPeakUsage(String name);
/**
+ * Returns the type of memory used by the specified pool.
+ * The value must be either "HEAP" or "NON_HEAP".
+ *
+ * @param name the name of the pool to obtain statistics on.
+ * @return the type of the given pool.
+ */
+ static native String getType(String name);
+
+ /**
* Returns the current usage level of the specified pool.
* This is only called if the pool is valid.
*