Re: Patches that will come...

[email protected] (Leopold Toetsch) Thu, 2 Sep 2004 16:04:20 +0200
Newsgroups perl.ponie.dev
Message-ID <[email protected]>
Arthur Bergman <[email protected]> wrote:

> On 2 Sep 2004, at 10:54, Leopold Toetsch wrote:

>>    DOD_WRITE_BARRIER(interpreter, av, AvARRAY(av)[i], some_sv);
>>    AvARRAY(av)[i] = some_sv;

> Couldn't we just do a DOD_WRITE_BARRIER on the Array PMC and that
> should stop it from going into anything inside that aggregate storage.?

If you manage to put the AvARRAY into write protected storage on all
supported platforms, yes. You could also C< | 1> to the address and
catch the segfaults ;)

There are special Lisp machines that directly support write or read
barriers, but w/o hardware support all these solutions are too slow.

leo