On Mon, 12 Jul 1999, Darryl Okahata wrote:
Justin Vallon <vallon(a)mindspring.com> wrote:
> So, the patch is basically: If !defined(MATCH_MAY_ALLOCATE) && __hpux,
> increase the amount of space regexp_compile allocates up-front for the
> worst case (max allowed) stack size (via malloc not alloca). Discounting
> config.h features, every platform that hits this line would probably
> benefit from increasing the stack size.
Don't you mean:
!defined(MATCH_MAY_ALLOCATE) || __hpux
Anyway, I'd like to point out that the default max stack size under HP-UX is 2MB.
No. It's actually defined(MATCH_MAY_ALLOCATE) || defined(__hpux). Your
patch was in the !defined(MATCH_MAY_ALLOCATE) part, and if
defined(__hpux), then increase the stack size...
I haven't experimented, but I suspect that the actual "C" stack may not be
used in this situation. I believe that the regex.c fail_stack is
allocated up-front, and is not dynamic. I'm not sure about that, though.
-Justin
vallon(a)mindspring.com