X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl.h;h=bf8b842d3f056574ab6679d73c931c5197470230;hb=da9274502cf796d52a9875e4c9f650b53901ad73;hp=a4737af8d72064a16a6658e38f4f9826a9f2b636;hpb=88dc0f0d4b3e8ced559c2ad1971419074a49337b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perl.h b/perl.h index a4737af..bf8b842 100644 --- a/perl.h +++ b/perl.h @@ -3033,6 +3033,34 @@ typedef struct am_table_short AMTS; #endif /* + * Some operating systems are stingy with stack allocation, + * so perl may have to guard against stack overflow. + */ +#ifndef PERL_STACK_OVERFLOW_CHECK +#define PERL_STACK_OVERFLOW_CHECK() 0 +#endif + +/* + * Some nonpreemptive operating systems find it convenient to + * check for asynchronous conditions after each op execution. + * Keep this check simple, or it may slow down execution + * massively. + */ +#ifndef PERL_ASYNC_CHECK +#define PERL_ASYNC_CHECK() 0 +#endif + +/* + * On some operating systems, a memory allocation may succeed, + * but put the process too close to the system's comfort limit. + * In this case, PERL_ALLOC_CHECK frees the pointer and sets + * it to NULL. + */ +#ifndef PERL_ALLOC_CHECK +#define PERL_ALLOC_CHECK(p) 0 +#endif + +/* * nice_chunk and nice_chunk size need to be set * and queried under the protection of sv_mutex */