dashpay / bls-signatures

BLS signatures in C++, using the relic toolkit
Apache License 2.0
10 stars 34 forks source link

refactor: use runtime.KeepAlive to prevent GC memory release #36

Closed shotonoff closed 2 years ago

shotonoff commented 2 years ago

To prevent releasing allocated memory, we have to use runtime.KeepAlive function to inform GC about it This PR adds runtime.KeepAlive calls, to ensure memory is consistent