summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-05-18 11:45:22 +0100
committerNicholas Clark <nick@ccl4.org>2011-06-11 09:40:03 +0200
commit2bda37bab5fb768caff2b228fda376b75df4815c (patch)
tree8dada944c2255f5bf9415e0872b879137c331b59 /sv.h
parent9402563ac1ee6a7649763b93342cb2940addf915 (diff)
downloadperl-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.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sv.h b/sv.h
index c102985d61..fe8a70af1a 100644
--- a/sv.h
+++ b/sv.h
@@ -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/'
*/