[crac] RFR: Reseed NativePRNG on checkpoint restore [v2]

Alexey Bakhtin abakhtin at openjdk.java.net
Fri Dec 24 21:35:23 UTC 2021


On Fri, 24 Dec 2021 11:30:45 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:

>> Alexey Bakhtin has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Use ReentrantReadWriteLock
>
> src/java.base/unix/classes/sun/security/provider/NativePRNG.java line 391:
> 
>> 389: 
>> 390:         // lock for checkpoint/restore
>> 391:         private final ReentrantLock crLock = new ReentrantLock();
> 
> The comment should specify it protects both mixRandom and the buffer of the truly random values read from OS.

Will do

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

PR: https://git.openjdk.java.net/crac/pull/9


More information about the crac-dev mailing list