Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't access caml values without acquired runtime #21

Closed
wants to merge 9 commits into from

Conversation

madroach
Copy link
Contributor

We mustn't access the context in a custom block while the runtime is released.
It might be relocated from minor to major heap or during major heap compaction. This is very probable if the context has just recently been allocated on the minor heap.
The work of copying the context is hopefully only a small overhead when checksumming over probably huge bigarrays.

Also include string.h for memcpy() and fix building on BSDs.

Christopher Zimmermann added 9 commits July 10, 2016 23:01
who have their own swap32 macros.
We mustn't access the context in a custom block while the runtime is released.
It might be relocated from minor to major heap or during major heap compaction.

Also include string.h for memcpy().
which is now called update_buffer. It was not exported in the .mli anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant