Apologies again for being a little slow (mentally now, not in terms of 
response time); by trying an Array you mean running the code in single-core 
mode and using an Array instead of a SharedArray? Running it in parallel 
with a regular Array (unsurprisingly) doesn't work. So I have:

Single core: initializing result* as Arrays works, initializing as 
SharedArrays gives unexpected result
Multi-core: initializing result* as Arrays returns empty Arrays, 
initializing as SharedArrays works

I'm still not sure whether this is a bug or the "intended" behaviour of 
SharedArrays, i.e. whether SharedArrays maybe just aren't meant to work in 
this situation when not using multiple processes. I'm a bit reluctant to 
file an issue simply because my understanding of the workings of 
SharedArray is limited, so I thought I'd ask for help here first.

Reply via email to