summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-03-19 19:10:42 +0000
committerNicholas Clark <nick@ccl4.org>2011-03-19 21:18:18 +0000
commit53ca1a61159c628a2b9c07745ac216e744f531ff (patch)
treee9832371a76d16ae658df11e32f7bdb475918d59
parent6438af90e1f793b4872222495896a0ce09ccb849 (diff)
downloadperl-53ca1a61159c628a2b9c07745ac216e744f531ff.tar.gz
Add PERL_NO_GET_CONTEXT to dl_dlopen.xs
For threaded builds on platforms using dlopen() for dynamic loading, this should reduce object size, and slightly reduce CPU usage when loading extensions.
-rw-r--r--ext/DynaLoader/dl_dlopen.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/DynaLoader/dl_dlopen.xs b/ext/DynaLoader/dl_dlopen.xs
index 21a8ef50d3..4646cb0c37 100644
--- a/ext/DynaLoader/dl_dlopen.xs
+++ b/ext/DynaLoader/dl_dlopen.xs
@@ -116,6 +116,8 @@
*/
+#define PERL_NO_GET_CONTEXT
+
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"