Mercurial > hg > openjdk > jdk9 > jdk
changeset 17228:e23c712e1d94
8178536: OOM ERRORS + SERVICE-THREAD TAKES A PROCESSOR TO 100%
Summary: Clear the pending OOM exception in SensorInfo::trigger()
Reviewed-by: mchung, dcubed
author | poonam |
---|---|
date | Fri, 16 Jun 2017 22:10:20 +0000 |
parents | 82ed25c3cea9 |
children | bec8ca52804c |
files | src/java.management/share/classes/sun/management/MemoryPoolImpl.java |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/java.management/share/classes/sun/management/MemoryPoolImpl.java Thu Jun 15 14:27:19 2017 -0700 +++ b/src/java.management/share/classes/sun/management/MemoryPoolImpl.java Fri Jun 16 22:10:20 2017 +0000 @@ -1,5 +1,5 @@ /* - * 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 @@ getCount()); } void triggerAction() { - // Should not reach here - throw new AssertionError("Should not reach here"); + // do nothing } void clearAction() { // do nothing @@ -332,8 +331,7 @@ gcSensor.getCount()); } void triggerAction() { - // Should not reach here - throw new AssertionError("Should not reach here"); + // do nothing } void clearAction() { // do nothing