summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-05-19 00:28:51 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-19 00:28:51 +0000
commit9965345dfe11415fe4409828505acf6c7fe193b9 (patch)
tree698244d2acf57eb8a374213afbc7d3b728b26182 /util.c
parent48eb4d6f7d05204aa5e734e924c7236048de530c (diff)
downloadperl-9965345dfe11415fe4409828505acf6c7fe193b9.tar.gz
Sarathy pointed out that instead of zeroing heap
it is more prudent to poison it. p4raw-id: //depot/perl@16688
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index ad91f01674..3e7b6d3232 100644
--- a/util.c
+++ b/util.c
@@ -3121,7 +3121,7 @@ Perl_new_struct_thread(pTHX_ struct perl_thread *t)
SvCUR_set(sv, sizeof(struct perl_thread));
thr = (Thread) SvPVX(sv);
#ifdef DEBUGGING
- memset(thr, 0xab, sizeof(struct perl_thread));
+ Poison(thr, 1, struct perl_thread);
PL_markstack = 0;
PL_scopestack = 0;
PL_savestack = 0;