Skip to content
Snippets Groups Projects
Commit f8cfafc5 authored by Duncan Coutts's avatar Duncan Coutts Committed by Reinier Maas
Browse files

Fix isByteArrayPinned# for the !HEAP_ALLOCATED case

The isByteArrayPinned# primop works by looking up the block descriptor
for the byte array to see if it lives in a pinned area or not. This of
course cannot work for byte arrays that are not HEAP_ALLOCATED since
they don't have block descriptors.

The solution is to check if it is HEAP_ALLOCATED first. Since this is
done in CMM code we make use of the new HEAP_ALLOCATED support for CMM.
It is a bit awkward since it does not have a uniform interface.
parent 3ef54581
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment