wxbty opened a new pull request, #11855:
URL: https://github.com/apache/dubbo/pull/11855

   ## What is the purpose of the change
   
   Similar to  #11842 , the cpu indicator also has a NaN bug
   
![image](https://user-images.githubusercontent.com/38374721/225807607-e6c8f1fa-bce5-4c23-ad60-99d03c6561bf.png)
   
   
   
   ## Brief changelog
   
   ```
       static <T> Builder<T> builder(String name, @Nullable T obj, 
ToDoubleFunction<T> f) {
           return new Builder<>(name, obj, f);
       }
   ```
   When using the above api, if T(obj) has no other strong references, gc will 
cause it to be recycled and print NaN.
   We need to save a strong reference to the obj instance.
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to