summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2005-03-28 21:38:44 +0000
committerDave Mitchell <davem@fdisolutions.com>2005-03-28 21:38:44 +0000
commitfd0854ffd71f437c5e7d44b6f60361faf0bd6d15 (patch)
tree35b2cad6f2cc4e9a78429f91fc6dbed9b69c1f95 /sv.h
parent1af60bcb794810018aa77e3f4c7d128153067785 (diff)
downloadperl-fd0854ffd71f437c5e7d44b6f60361faf0bd6d15.tar.gz
expand -DDEBUG_LEAKING_SCALARS to instrument the creation of each SV
p4raw-id: //depot/perl@24088
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index 9fe365751b..05c44493f5 100644
--- a/sv.h
+++ b/sv.h
@@ -68,6 +68,13 @@ struct STRUCT_SV { /* struct sv { */
void* sv_any; /* pointer to something */
U32 sv_refcnt; /* how many references to us */
U32 sv_flags; /* what we are */
+#ifdef DEBUG_LEAKING_SCALARS
+ unsigned sv_debug_optype:9; /* the type of OP that allocated us */
+ unsigned sv_debug_inpad:1; /* was allocated in a pad for an OP */
+ unsigned sv_debug_cloned:1; /* was cloned for an ithread */
+ unsigned sv_debug_line:16; /* the line where we were allocated */
+ char * sv_debug_file; /* the file where we were allocated */
+#endif
};
struct gv {