From 3eb77821015ef673b4def89ad3d7b1fea60e52c4 Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 14 Sep 2005 21:31:47 +0000 Subject: 2005-09-14 Frank Ch. Eigler PR 1344 * translate.cxx: Call _stp_map_clear for "delete ARRAY" statement. 2005-09-14 Frank Ch. Eigler * systemtap.samples/pfaults.stp: Complicate to test PR 1344. --- translate.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'translate.cxx') diff --git a/translate.cxx b/translate.cxx index 9f057043..b3a4221e 100644 --- a/translate.cxx +++ b/translate.cxx @@ -1604,8 +1604,12 @@ delete_statement_operand_visitor::visit_symbol (symbol* e) { mapvar mvar = parent->getmap(e->referent, e->tok); varlock_w guard (*parent, mvar); + /* NB: such memory deallocation/allocation operations + are not generally legal in all probe contexts. parent->o->newline() << mvar.fini (); parent->o->newline() << mvar.init (); + */ + parent->o->newline() << "_stp_map_clear (" << mvar.qname() << ");"; } void -- cgit