This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Inconsistent behavior of 'delete'
- From: Martin Hunt <hunt at redhat dot com>
- To: "Stone, Joshua I" <joshua dot i dot stone at intel dot com>
- Cc: "systemtap at sources dot redhat dot com" <systemtap at sources dot redhat dot com>
- Date: Fri, 06 Jan 2006 13:04:44 -0800
- Subject: Re: Inconsistent behavior of 'delete'
- Organization: Red Hat Inc
- References: <CBDB88BFD06F7F408399DBCF8776B3DC0606ABCC@scsmsx403.amr.corp.intel.com>
On Fri, 2006-01-06 at 12:36 -0800, Stone, Joshua I wrote:
> WAS: [Bug translator/2115] support some function calls on maps
> fche at redhat dot com wrote:
> > "clear" == "delete MAP"
>
> I tried this out, and sure enough it works. But, I noticed that it
> currently only works in two specific cases: deleting one index from a
> map of ints, or deleting an entire map (but not a pmap).
Not working for pmaps is certainly a bug. It also needs to work for
stats. The rest is debatable, but probably desirable for consistency.
Should we consider changing the name to "clear" instead of "delete"?
For maps, delete actually deletes entries, freeing up memory. However,
that doesn't apply to other types.
Martin