summaryrefslogtreecommitdiff
path: root/vm/reference/gnu/java/lang/management
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2006-07-22 19:59:12 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2006-07-22 19:59:12 +0000
commitf4aada78b313b1148dfa018f3557d3030acc5efd (patch)
tree5f92bb484074f76f41000ca1f558a00ecbe29e67 /vm/reference/gnu/java/lang/management
parent117a7978539cb6f9ddd0bd483979970b532ed899 (diff)
downloadclasspath-f4aada78b313b1148dfa018f3557d3030acc5efd.tar.gz
2006-07-22 Andrew John Hughes <gnu_andrew@member.fsf.org>
* doc/vmintegration.texinfo: Document getType(String). * gnu/java/lang/management/MemoryPoolMXBeanImpl.java, * java/lang/management/MemoryPoolMXBean.java: (getType()): Implemented. * vm/reference/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java (getType(String)): Implemented.
Diffstat (limited to 'vm/reference/gnu/java/lang/management')
-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.
*