“3bb48060d12876fa851c2624653010ad91ce1148”上不存在“...lang/annotation/TestIncompleteAnnotationExceptionNPE.java”
提交 2a29d1f0 编写于 作者: S sjiang

8137060: JMX memory management improvements

Reviewed-by: dfuchs, ahgross
上级 9fa7637a
...@@ -115,17 +115,10 @@ class MemoryImpl extends NotificationEmitterSupport ...@@ -115,17 +115,10 @@ class MemoryImpl extends NotificationEmitterSupport
"Memory usage exceeds collection usage threshold" "Memory usage exceeds collection usage threshold"
}; };
private MBeanNotificationInfo[] notifInfo = null;
public MBeanNotificationInfo[] getNotificationInfo() { public MBeanNotificationInfo[] getNotificationInfo() {
synchronized (this) { return new MBeanNotificationInfo[] {
if (notifInfo == null) { new MBeanNotificationInfo(notifTypes, notifName, "Memory Notification")
notifInfo = new MBeanNotificationInfo[1]; };
notifInfo[0] = new MBeanNotificationInfo(notifTypes,
notifName,
"Memory Notification");
}
}
return notifInfo;
} }
private static String getNotifMsg(String notifType) { private static String getNotifMsg(String notifType) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册