X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=miniperlmain.c;h=620fed78b2b5bde822dbf4a7e9b0e428d2a36b86;hb=78da6883f07d155aeb421dce0d6958c4526de8e6;hp=d1b3e8ed99ec8f3db28222391ca5c15dcf6fbfb0;hpb=642f9debcae19ee23c984c3fbe5fa65e96398ea0;p=p5sagit%2Fp5-mst-13.2.git diff --git a/miniperlmain.c b/miniperlmain.c index d1b3e8e..620fed7 100644 --- a/miniperlmain.c +++ b/miniperlmain.c @@ -3,7 +3,12 @@ */ #ifdef OEMVS -#pragma runopts(HEAP(1M,32K,ANYWHERE,KEEP,8K,4K)) +#ifdef MYMALLOC +/* sbrk is limited to first heap segement so make it big */ +#pragma runopts(HEAP(8M,500K,ANYWHERE,KEEP,8K,4K) STACK(,,ANY,) ALL31(ON)) +#else +#pragma runopts(HEAP(2M,500K,ANYWHERE,KEEP,8K,4K) STACK(,,ANY,) ALL31(ON)) +#endif #endif @@ -37,8 +42,18 @@ main(int argc, char **argv, char **env) #undef PERLVARIC #endif + /* if user wants control of gprof profiling off by default */ + /* noop unless Configure is given -Accflags=-DPERL_GPROF_CONTROL */ + PERL_GPROF_MONCONTROL(0); + PERL_SYS_INIT3(&argc,&argv,&env); +#ifdef USE_ITHREADS + PTHREAD_ATFORK(Perl_atfork_lock, + Perl_atfork_unlock, + Perl_atfork_unlock); +#endif + if (!PL_do_undump) { my_perl = perl_alloc(); if (!my_perl)