# HG changeset patch # User poonam # Date 1497651020 0 # Node ID e23c712e1d9428e32241edb4255d1bfbcb1500d1 # Parent 82ed25c3cea9818f579874304f08e574af6575e4 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 82ed25c3cea9 -r e23c712e1d94 src/java.management/share/classes/sun/management/MemoryPoolImpl.java --- 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