5266N/A * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * @summary When the "java.rmi.dgc.leaseValue" system property is set to a 0N/A * value much lower than its default (10 minutes), then the server-side 0N/A * user-visible detection of DGC lease expiration-- in the form of 0N/A * Unreferenced.unreferenced() invocations and possibly even local garbage 0N/A * collection (including weak reference notification, finalization, etc.)-- 0N/A * may be delayed longer than expected. While this is not a spec violation 0N/A * (because there are no timeliness guarantees for any of these garbage 0N/A * collection-related events), the user might expect that an unreferenced() 0N/A * invocation for an object whose last client has terminated abnorally 0N/A * should occur on relatively the same time order as the lease value 0N/A * @author Peter Jones 0N/A * @library ../../../testlibrary 5551N/A * @build TestLibrary JavaVM LeaseCheckInterval_Stub SelfTerminator 169N/A * Set the duration of leases granted to a very small value, so that 169N/A * we can test if expirations are detected in a roughly comparable 169N/A "unreferenced() invoked in timely fashion");
169N/A "TEST FAILED: unreferenced() not invoked after " +
169N/A * When all is said and done, try to unexport the remote object 169N/A * so that the VM has a chance to exit.