diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-05-18 11:45:22 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-06-11 09:40:03 +0200 |
commit | 2bda37bab5fb768caff2b228fda376b75df4815c (patch) | |
tree | 8dada944c2255f5bf9415e0872b879137c331b59 /sv.h | |
parent | 9402563ac1ee6a7649763b93342cb2940addf915 (diff) | |
download | perl-2bda37bab5fb768caff2b228fda376b75df4815c.tar.gz |
Store the BM table in mg_ptr instead of after SvCUR().
Previously the 256 byte Boyer-Moore table was stored in the buffer of SvPVX()
after the raw string by extending the buffer.
Given that the scalar is alway upgraded to add PERL_MAGIC_bm magic, to clear
the table and other flags, there's no extra memory cost in using mg_ptr in the
MAGIC struct to point directly to the table.
I believe that this removes the last place in the core that stores data beyond
SvCUR().
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1287,8 +1287,6 @@ the scalar's value cannot change unless written to. } STMT_END #endif -#define PERL_FBM_TABLE_OFFSET 1 /* Number of bytes between EOS and table */ - /* SvPOKp not SvPOK in the assertion because the string can be tainted! eg perl -T -e '/$^X/' */ |