Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8176980 | 10 | Mandy Chung | P2 | Resolved | Fixed | b03 |
Soft, weak, and phantom references are automatically-cleared references (see JDK-8071507). The referent is cleared before the reference object is enqueued.
The `enqueue` method should behave the same and it should clear the reference before enqueuing it to the registered queue.
Surveying the existing usage of this enqueue method, it's a common pattern that Reference::clear is called before or after enqueuing.
The `enqueue` method should behave the same and it should clear the reference before enqueuing it to the registered queue.
Surveying the existing usage of this enqueue method, it's a common pattern that Reference::clear is called before or after enqueuing.
- backported by
-
JDK-8176980 (ref) Reference::enqueue method should clear referent before enqueuing
-
- Resolved
-
- relates to
-
JDK-8178832 (ref) jdk.lang.ref.disableClearBeforeEnqueue property is ignored
-
- Closed
-
-
JDK-8193780 (ref) Remove the undocumented "jdk.lang.ref.disableClearBeforeEnqueue" system property
-
- Resolved
-
-
JDK-8215985 ZGC: Simplify reference processing in light of JDK-8175797
-
- Resolved
-
-
JDK-8071507 (ref) Clear phantom reference as soft and weak references do
-
- Closed
-
-
JDK-8203028 Simplify reference processing in light of JDK-8175797
-
- Resolved
-
(1 relates to)