< prev index next >

src/java.base/share/classes/jdk/internal/misc/JavaLangRefAccess.java

Print this page
rev 15227 : imported patch vm_api

*** 1,7 **** /* ! * Copyright (c) 2014, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2014, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 26,39 **** package jdk.internal.misc; public interface JavaLangRefAccess { /** ! * Help ReferenceHandler thread process next pending ! * {@link java.lang.ref.Reference} * ! * @return {@code true} if there was a pending reference and it ! * was enqueue-ed or {@code false} if there was no ! * pending reference */ ! boolean tryHandlePendingReference(); } --- 26,39 ---- package jdk.internal.misc; public interface JavaLangRefAccess { /** ! * Wait for progress in {@link java.lang.ref.Reference} ! * processing. If there aren't any pending {@link ! * java.lang.ref.Reference}s, return immediately. * ! * @return {@code true} if there were any pending ! * {@link java.lang.ref.Reference}s, {@code false} otherwise. */ ! boolean waitForReferenceProcessing() throws InterruptedException; }
< prev index next >