RFR: 8266846: Add java.time.InstantSource
Ralph Goers
github.com+120415+rgoers at openjdk.java.net
Sat May 15 21:42:41 UTC 2021
On Thu, 13 May 2021 20:52:33 GMT, Stephen Colebourne <scolebourne at 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
More information about the core-libs-dev
mailing list