jdk/src/java.base/share/classes/java/lang/ref/Reference.java
changeset 32100 8a0db19f4e84
parent 31671 362e0c0acece
child 32649 2ee9017c7597
equal deleted inserted replaced
32025:f6921855b241 32100:8a0db19f4e84
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    99      *     pending:   this
    99      *     pending:   this
   100      *    Enqueued:   next reference in queue (or this if last)
   100      *    Enqueued:   next reference in queue (or this if last)
   101      *    Inactive:   this
   101      *    Inactive:   this
   102      */
   102      */
   103     @SuppressWarnings("rawtypes")
   103     @SuppressWarnings("rawtypes")
   104     Reference next;
   104     volatile Reference next;
   105 
   105 
   106     /* When active:   next element in a discovered reference list maintained by GC (or this if last)
   106     /* When active:   next element in a discovered reference list maintained by GC (or this if last)
   107      *     pending:   next element in the pending list (or null if last)
   107      *     pending:   next element in the pending list (or null if last)
   108      *   otherwise:   NULL
   108      *   otherwise:   NULL
   109      */
   109      */