On Thu, 13 May 2021 20:52:33 GMT, Stephen Colebourne <scolebou...@openjdk.org> 
wrote:

> 8266846: Add java.time.InstantSource

Can you possibly find a way that this can be used in a garbage free manner?  
Providing a MutableInstant interface that allows the Instant object to be 
provided and have its values set by a currentInstant(MutableInstant instant) 
method would solve the problem nicely for Log4j - or any other app that is 
trying to avoid allocating new objects.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4016

Reply via email to