diff options
author | Father Chrysostomos <sprout@cpan.org> | 2016-08-14 01:11:07 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2016-08-14 11:29:10 -0700 |
commit | 8d89205aa6324e7dc469ff80b73d94181c926654 (patch) | |
tree | 273f64fcbeb3af0e408a013982902c0439a28b19 /intrpvar.h | |
parent | 6b6b24f11907f607277fd8cf6f08264c234cc693 (diff) | |
download | perl-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 'intrpvar.h')
-rw-r--r-- | intrpvar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intrpvar.h b/intrpvar.h index 756b1dc9b4..dd9159e6af 100644 --- a/intrpvar.h +++ b/intrpvar.h @@ -543,7 +543,7 @@ PERLVARA(I, body_roots, PERL_ARENA_ROOTS_SIZE, void*) /* array of body roots */ PERLVAR(I, debug, VOL U32) /* flags given to -D switch */ -PERLVARI(I, maxo, int, MAXO) /* maximum number of ops */ + /* 32-BIT HOLE !!! */ PERLVARI(I, runops, runops_proc_t, RUNOPS_DEFAULT) |