# HG changeset patch # User poonam # Date 1497651020 0 # Node ID 285619b3d1298f5856b51a6a070e5efb9a5ce8fc # Parent 4f0da549335eabdcf4e508e3e0120546f56dbf67 8178536: OOM ERRORS + SERVICE-THREAD TAKES A PROCESSOR TO 100% Summary: Clear the pending OOM exception in SensorInfo::trigger() Reviewed-by: mchung, dcubed diff -r 4f0da549335e -r 285619b3d129 jdk/src/java.management/share/classes/sun/management/MemoryPoolImpl.java --- a/jdk/src/java.management/share/classes/sun/management/MemoryPoolImpl.java Thu Jun 15 14:27:19 2017 -0700 +++ b/jdk/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