提交 5ff6cb5d 编写于 作者: P poonam

8178536: OOM ERRORS + SERVICE-THREAD TAKES A PROCESSOR TO 100%

Summary: Clear the pending OOM exception in SensorInfo::trigger()
Reviewed-by: mchung, dcubed
上级 86daca7f
/*
* Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......@@ -304,8 +304,7 @@ class MemoryPoolImpl implements MemoryPoolMXBean {
getCount());
}
void triggerAction() {
// Should not reach here
throw new AssertionError("Should not reach here");
// do nothing
}
void clearAction() {
// do nothing
......@@ -332,8 +331,7 @@ class MemoryPoolImpl implements MemoryPoolMXBean {
gcSensor.getCount());
}
void triggerAction() {
// Should not reach here
throw new AssertionError("Should not reach here");
// do nothing
}
void clearAction() {
// do nothing
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册