summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2002-01-15 11:29:47 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2002-01-15 11:29:47 +0000
commitba979b3106a5e7f3b2512d1f4e93c681fba7aa9f (patch)
tree72ee4a7f64defda57f4640e989e1e59e047f15c4 /perl.h
parentf1f8f8925a02a6ca4f9ef21b150b369edc63630d (diff)
downloadperl-ba979b3106a5e7f3b2512d1f4e93c681fba7aa9f.tar.gz
Regen embed enable slab for PERL_IMPLICIT_SYS
p4raw-id: //depot/perlio@14271
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 3dcb14624a..651f15c6cf 100644
--- a/perl.h
+++ b/perl.h
@@ -41,6 +41,15 @@
/* See L<perlguts/"The Perl API"> for detailed notes on
* PERL_IMPLICIT_CONTEXT and PERL_IMPLICIT_SYS */
+#ifdef PERL_IMPLICIT_SYS
+/* PERL_IMPLICIT_SYS implies PerlMemShared != PerlMem
+ so use slab allocator to avoid lots of MUTEX overhead
+ */
+# ifndef PL_SLAB_ALLOC
+# define PL_SLAB_ALLOC
+# endif
+#endif
+
#ifdef USE_ITHREADS
# if !defined(MULTIPLICITY)
# define MULTIPLICITY