提交 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -304,8 +304,7 @@ class MemoryPoolImpl implements MemoryPoolMXBean { ...@@ -304,8 +304,7 @@ class MemoryPoolImpl implements MemoryPoolMXBean {
getCount()); getCount());
} }
void triggerAction() { void triggerAction() {
// Should not reach here // do nothing
throw new AssertionError("Should not reach here");
} }
void clearAction() { void clearAction() {
// do nothing // do nothing
...@@ -332,8 +331,7 @@ class MemoryPoolImpl implements MemoryPoolMXBean { ...@@ -332,8 +331,7 @@ class MemoryPoolImpl implements MemoryPoolMXBean {
gcSensor.getCount()); gcSensor.getCount());
} }
void triggerAction() { void triggerAction() {
// Should not reach here // do nothing
throw new AssertionError("Should not reach here");
} }
void clearAction() { void clearAction() {
// do nothing // do nothing
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册