Following the fiasco of CODETOOLS-7901865, we need to provide a defense in depth: do not retain consumed objects strongly, but do either weak-, or phantom-reference. This way, even if infra does not call evaporate(), we will still be able to ditch the consumed object.
- relates to
-
CODETOOLS-7902944 JMH: Avoid direct weak references in Blackhole.consume(Object)
- New
-
CODETOOLS-7901865 Blackhole.consume(Object) retains consumed objects
- Resolved