This won´t help to find the spots that require memory barriers, as
these are only an issue on SMP systems. But your idea should not be
discarded as it may help with other kinds of problems.


On 10/17/05, Archie Cobbs <[EMAIL PROTECTED]> wrote:
> Apache Harmony Bootstrap JVM wrote:
> > For testing threading, I think the simpler the better.
>
> If Harmony contains a JIT, then it would probably be easy to
> configure the JIT to insert "context switch" instruction(s)
> between every two instructions it emits. Then we could write
> tests that attempt to trigger memory model violations and
> run thoses tests in this debug mode. That would go a long
> way towards gaining confidence in correctness.
>
> -Archie
>
> __________________________________________________________________________
> Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com
>

Reply via email to