summaryrefslogtreecommitdiff
path: root/embedvar.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2016-08-14 01:11:07 -0700
committerFather Chrysostomos <sprout@cpan.org>2016-08-14 11:29:10 -0700
commit8d89205aa6324e7dc469ff80b73d94181c926654 (patch)
tree273f64fcbeb3af0e408a013982902c0439a28b19 /embedvar.h
parent6b6b24f11907f607277fd8cf6f08264c234cc693 (diff)
downloadperl-8d89205aa6324e7dc469ff80b73d94181c926654.tar.gz
Remove PL_maxo
We have an interpreter variable using memory, PL_maxo, which is defined to be the same as MAXO, a #defined constant. As far as I can tell, it is never used in lvalue context, in core or on CPAN, except for the initialisation in intrpvar.h. It can simply be removed and replaced with a macro defined as equiva- lent to MAXO. It was added in this commit: commit 84ea024ac9cdf20f21223e686dddea82d5eceb4f Author: Perl 5 Porters <perl5-porters.nicoh.com> Date: Tue Jan 2 23:21:55 1996 +0000 perl 5.002beta1h patch: perl.h 5.002beta1 attempted some memory optimizations, but unfortunately they can result in a memory leak problem. This can be avoided by #define STRANGE_MALLOC. I do that here until consensus is reached on a better strategy for handling the memory optimizations. Include maxo for the maximum number of operations (needed for the Safe extension). But apparently it is not needed for the Safe extension (tests pass without it).
Diffstat (limited to 'embedvar.h')
-rw-r--r--embedvar.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/embedvar.h b/embedvar.h
index cf4912ca58..18f2c99547 100644
--- a/embedvar.h
+++ b/embedvar.h
@@ -195,7 +195,6 @@
#define PL_markstack_max (vTHX->Imarkstack_max)
#define PL_markstack_ptr (vTHX->Imarkstack_ptr)
#define PL_max_intro_pending (vTHX->Imax_intro_pending)
-#define PL_maxo (vTHX->Imaxo)
#define PL_maxsysfd (vTHX->Imaxsysfd)
#define PL_memory_debug_header (vTHX->Imemory_debug_header)
#define PL_mess_sv (vTHX->Imess_sv)