summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-09-09 14:25:51 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-09-09 14:25:51 +0000
commit894ccb8c0c01965b9dd111999ee86def327e7c24 (patch)
treeaf41d45a6e3a96e51dcad6e3d8136b2bd1055845 /perl.h
parent26a2d34763c26e0d624a4f2227cb0f7da1812632 (diff)
downloadperl-894ccb8c0c01965b9dd111999ee86def327e7c24.tar.gz
Retract #21132.
p4raw-id: //depot/perl@21140
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index 39a5a42344..01458d9b65 100644
--- a/perl.h
+++ b/perl.h
@@ -44,8 +44,13 @@
* repeated in makedef.pl, so be certain to update
* both places when editing. */
-#ifndef PL_OP_SLAB_ALLOC
-# define PL_OP_SLAB_ALLOC
+#ifdef PERL_IMPLICIT_SYS
+/* PERL_IMPLICIT_SYS implies PerlMemShared != PerlMem
+ so use slab allocator to avoid lots of MUTEX overhead
+ */
+# ifndef PL_OP_SLAB_ALLOC
+# define PL_OP_SLAB_ALLOC
+# endif
#endif
#ifdef USE_ITHREADS