New procedure (bytevector-zero-explicit! <bv> [<start> [<end>]]).
authorTaylor R Campbell <campbell@mumble.net>
Wed, 7 Nov 2018 05:33:52 +0000 (05:33 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Wed, 7 Nov 2018 05:33:52 +0000 (05:33 +0000)
commita603570afea9bba562a47f25c41558e85cf02982
treebb2882a48a69d0d9eb4ab7ffc4d588039a69224c
parent7626d2f36b7f6282ed1286926968f08fc4345650
New procedure (bytevector-zero-explicit! <bv> [<start> [<end>]]).

Intended to zero the memory backing a bytevector even if the values
will never be used again and an aggressively optimizing compiler can
prove that.

Doesn't actually work (GC can move stuff without zeroing it) but it
may help to have it in order to tag where it _would_ be needed if we
could make it work in the future.
src/runtime/bytevector.scm
src/runtime/runtime.pkg
tests/runtime/test-bytevector.scm