8225675: Outdated citation of JLS in java.lang.ref.Reference
Reviewed-by: lancea, jjg, mchung
This commit is contained in:
parent
9c5a2bf5af
commit
78f3c596a3
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2019, 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
|
||||
@ -418,10 +418,10 @@ public abstract class Reference<T> {
|
||||
* {@code synchronized} blocks or methods, or using other synchronization
|
||||
* facilities are not possible or do not provide the desired control. This
|
||||
* method is applicable only when reclamation may have visible effects,
|
||||
* which is possible for objects with finalizers (See
|
||||
* <a href="https://docs.oracle.com/javase/specs/jls/se8/html/jls-12.html#jls-12.6">
|
||||
* Section 12.6 17 of <cite>The Java™ Language Specification</cite></a>)
|
||||
* that are implemented in ways that rely on ordering control for correctness.
|
||||
* which is possible for objects with finalizers (See Section 12.6
|
||||
* of <cite>The Java™ Language Specification</cite>) that
|
||||
* are implemented in ways that rely on ordering control for
|
||||
* correctness.
|
||||
*
|
||||
* @apiNote
|
||||
* Finalization may occur whenever the virtual machine detects that no
|
||||
@ -508,6 +508,7 @@ public abstract class Reference<T> {
|
||||
*
|
||||
* @param ref the reference. If {@code null}, this method has no effect.
|
||||
* @since 9
|
||||
* @jls 12.6 Finalization of Class Instances
|
||||
*/
|
||||
@ForceInline
|
||||
public static void reachabilityFence(Object ref) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user