handle JMM_THREAD_ALLOCATED_MEMORY in JMX GetBoolAttribute implementation

This commit is contained in:
Joel Dice 2012-02-21 17:32:20 -07:00
parent d94fd952e9
commit 747f22115f

View File

@ -5271,9 +5271,11 @@ jboolean JNICALL
GetBoolAttribute(Thread* t, jmmBoolAttribute attribute) GetBoolAttribute(Thread* t, jmmBoolAttribute attribute)
{ {
const unsigned JMM_THREAD_CPU_TIME = 24; const unsigned JMM_THREAD_CPU_TIME = 24;
const unsigned JMM_THREAD_ALLOCATED_MEMORY = 25;
switch (attribute) { switch (attribute) {
case JMM_THREAD_CPU_TIME: case JMM_THREAD_CPU_TIME:
case JMM_THREAD_ALLOCATED_MEMORY:
return false; return false;
default: default: