Consider GetByteArrayElements
Opened this issue · 0 comments
marschall commented
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.