Peter Bortas wrote:
>On Tue, Mar 1, 2016 at 5:15 PM, Stephen R. van den Berg <s...@cuci.nl> wrote:
>> Incidentally: this fix is incomplete.  So it fixes some of those
>> race-conditions, but not all of them.

>Is there a way of reducing that to a reproducable test? It doesn't
>have to be simple enough to go into the testsuite.

I'd guess it would be possible.

Basically what it boils down to is:
- Create a race.pmod which defines and initialises some variables and
  defines a method called trigger().
- Create a testrace.pike which splits up in say two (or more) threads
  and in each of those threads it calls up .race.trigger()
  at mostly the same moment.
- Then start testrace.pike, and after it finishes, restart it again.
- Hopefully every now and then, you'd trigger the compilerrace-bug.
-- 
Stephen.

Reply via email to