This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/6932] c->busy can be non-atomic.
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 8 Mar 2009 00:32:53 -0000
- Subject: [Bug translator/6932] c->busy can be non-atomic.
- References: <20081001203800.6932.mhiramat@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jistone at redhat dot com 2009-03-08 00:32 -------
(In reply to comment #21)
> (In reply to comment #20)
> > Another possibility is to choose something like c->probe_point to protect
> > against reentrancy instead, and update that field with compare-exchange.
>
> Only if no probe cannot possibly reenter itself.
Why is that? The probe would just cmpxchg against 0 -- if it returns anything
non-0, then somebody is already in there. This works even if that somebody is
the same probe.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6932
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.