pike.git / src / main.c

version» Context lines:

pike.git/src/main.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: main.c,v 1.121 2001/03/29 20:23:08 grubba Exp $"); + RCSID("$Id: main.c,v 1.122 2001/04/11 11:52:12 grubba Exp $");   #include "fdlib.h"   #include "backend.h"   #include "module.h"   #include "object.h"   #include "language.h"   #include "lex.h"   #include "pike_types.h"   #include "builtin_functions.h"   #include "array.h"   #include "stralloc.h"
pike.git/src/main.c:462: Inside #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_STACK) and #if defined(__linux__) && defined(PIKE_THREADS)
     #if defined(__linux__) && defined(PIKE_THREADS)    /* This is a really really *stupid* limit in glibc 2.x    * which is not detectable since __pthread_initial_thread_bos    * went static. On a stupidity-scale from 1-10, this rates a    * solid 11. - Hubbe    */    if(lim.rlim_cur > 2*1024*1024) lim.rlim_cur=2*1024*1024;   #endif    + #if defined(_AIX) && defined(__ia64) +  /* getrlimit() on AIX 5L/IA64 Beta 3 reports 32MB by default, +  * even though the stack is just 8MB. +  */ +  if (lim.rlim_cur > 8*1024*1024) { +  lim.rlim_cur = 8*1024*1024; +  } + #endif /* _AIX && __ia64 */ +    #if STACK_DIRECTION < 0    Pike_interpreter.stack_top -= lim.rlim_cur;   #else /* STACK_DIRECTION >= 0 */    Pike_interpreter.stack_top += lim.rlim_cur;   #endif /* STACK_DIRECTION < 0 */      #if defined(__linux__) && defined(HAVE_DLOPEN) && defined(HAVE_DLFCN_H)    {    char ** bos_location;    void *handle;