Add PERL_NO_GET_CONTEXT to dl_dlopen.xs
authorNicholas Clark <nick@ccl4.org>
Sat, 19 Mar 2011 19:10:42 +0000 (19:10 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 19 Mar 2011 21:18:18 +0000 (21:18 +0000)
For threaded builds on platforms using dlopen() for dynamic loading, this
should reduce object size, and slightly reduce CPU usage when loading
extensions.

ext/DynaLoader/dl_dlopen.xs

index 21a8ef5..4646cb0 100644 (file)
 
 */
 
+#define PERL_NO_GET_CONTEXT
+
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"