Nikodemus Siivola writes:
> Alastair Bridgewater <nyef_sbcl@...> writes:
>> Hello all,
>> Attached is a patch to make stack guard page reinstation on Win32 not
>> suck completely. Based on 188.8.131.52, only tested on WinXP, almost
>> guaranteed not to work on win9x, etc.
>> One caveat: While testing this from toplevel REPL shows that the guard
>> page is automatically reinstated, this is because the toplevel calls
>> out to reinstate it. If you restart from a control stack overflow
>> anywhere else you have to re-protect the guard page manually.
> I have a similar tree uses instead _resetstkoflw instead of a homebrew
> Is there an advangate to implementing it ourselves?
Yes. _resetstkoflw isn't available on all library / header versions (as a
specific instance: It's not in any include file under /usr/include/,
including /usr/include/w32api/ on my system).
A case could be made that we should use _resetstkoflw if it is available,
and our own reimplementation otherwise but since it's a compile-time thing
we'd need to make sure we don't lose wrt. runtime bindings.
> -- Nikodemus Schemer: "Buddha is small, clean, and serious."
> Lispnik: "Buddha is big, has hairy armpits, and laughs."