On Tue, 14 May 2024 11:19:36 GMT, Daniel Fuchs <dfu...@openjdk.org> wrote:

>> @dfuch You mean not loading the whole batch but only individual classes, as 
>> need arises?
>
> yes - I do not know if loading all the classes in one batch could be an issue 
> at startup (I'd expect Random to be loaded early) - but if it proves to be, 
> then using a Supplier to load them on demand might do the trick. If creating 
> Random or SecureRandom does not trigger this code - and if those classes are 
> not loaded at startup - then maybe that's a non issue and you can just ignore 
> my comment.

Loading of `Random`, `SecureRandom`, `SplittableRandom`, or `ThreadLocalRandom` 
does not trigger the loading of `RandomGeneratorFactory`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19212#discussion_r1599904324

Reply via email to