RFR: 8348611: Eliminate DeferredLintHandler and emit warnings after attribution [v10]
    Vicente Romero 
    vromero at openjdk.org
       
    Wed Aug 13 19:49:14 UTC 2025
    
    
  
On Wed, 13 Aug 2025 19:38:41 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
>>> yes you are right we have other DSs with the same `issue` if any. I guess discuss and address it as a separate issue
>> 
>> I'm not familiar with all of the various compiler life-cycle variants, but I guess it would boil down to the question, "In what scenarios would a `Context` that's not a `ReusableContext` be reused for multiple compilations?"
>
> FWIW, this is an instance field on a `Context` service - it will be GCed when the given javac instance is GCed. I think in most cases, use of weak maps is not necessary.
I was worried about holding unnecessary memory withing one javac instance
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24584#discussion_r2274464640
    
    
More information about the compiler-dev
mailing list