sbool threadAllocatedMemoryEnabled() { ThreadMXBean bean = threadMXBean(); ret bean instanceof com.sun.management.ThreadMXBean && ((com.sun.management.ThreadMXBean) bean).isThreadAllocatedMemoryEnabled(); }