On Aug 28, 8:57 am, Andrea Gallo <
andrea.ga...@stericsson.com> wrote:
> With these modifications, Andorid runs successfully in our SMP
> platform, including Dalvik applications, browsing, media play. We
> haven't observed any regression compared to single-core execution, nor
> instabilities of any kind.
Very cool.
> There are however several places in the Android sources where SMP
> safeness is not clear, in particular after an initial scan, we found
> that memory barriers are potentially missing in these places:
[...]
> dalvik/vm/Atomic.h:34
In addition to the incompletely defined memory barrier macro, there
are undoubtedly places in the VM code where memory barriers should be
used but aren't. Unfortunately that's going to require a bit of
concentrated effort to fix.