This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A patch for regex.c


posix/runptests failed on my 4GB RAM machine when run through make.
It ran ok by hand. This patch fixes it. The comments indicate
4000 is a better choice. 


-- 
H.J. Lu (hjl@gnu.org)
--
2000-07-13  H.J. Lu  <hjl@gnu.org>

	* posix/regex.c (re_max_failures): Set to 4000.

Index: posix/regex.c
===================================================================
RCS file: /work/cvs/gnu/glibc/posix/regex.c,v
retrieving revision 1.1.1.2
diff -u -p -r1.1.1.2 regex.c
--- posix/regex.c	2000/07/12 18:50:17	1.1.1.2
+++ posix/regex.c	2000/07/13 20:35:54
@@ -1234,7 +1234,7 @@ typedef struct
 # if defined MATCH_MAY_ALLOCATE
 /* 4400 was enough to cause a crash on Alpha OSF/1,
    whose default stack limit is 2mb.  */
-int re_max_failures = 20000;
+int re_max_failures = 4000;
 # else
 int re_max_failures = 2000;
 # endif

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]