--- old/test/jdk/java/rmi/server/UnicastRemoteObject/unexportObject/UnexportLeak.java 2020-02-25 17:44:09.000000000 -0500 +++ new/test/jdk/java/rmi/server/UnicastRemoteObject/unexportObject/UnexportLeak.java 2020-02-25 17:44:09.000000000 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, 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 @@ -74,7 +74,7 @@ } /** - * Force desperate garbage collection so that all WeakReference instances + * Force desparate garbage collection so that all WeakReference instances * will be cleared. */ private static void flushRefs() { @@ -85,9 +85,6 @@ chain.addElement(hungry); } } catch (OutOfMemoryError e) { - // An inflated Java monitor can keep 'obj' alive so request - // an explicit GC to make sure things are cleaned up. - System.gc(); } } }