marschall/getrandom-provider

Consider GetByteArrayElements

Opened this issue · 0 comments

For GCs that support object pinning like Shenandoah object pinning in the form of GetByteArrayElements and ReleaseByteArrayElements pairs may be worth considering for urandom reads as a copy can be avoided in this case. However for everybody else this would mean an allocation on the C heap which the current stack allocation scheme avoids.