[Bug translator/11695] DWIM promotion of ++ to <<<
jistone at redhat dot com
sourceware-bugzilla@sourceware.org
Sat Jun 12 14:27:00 GMT 2010
------- Additional Comments From jistone at redhat dot com 2010-06-11 15:52 -------
(In reply to comment #1)
> The aggregate doesn't need a global lock, it uses per-cpu counters.
It does have a lock, but the exclusiveness is inverted: <<< takes a read lock
and @extract takes a write lock. You can think of it as locking the aggregate
structure, which you write to when @extracting data from the per-cpu structures.
So this transformation is only worthwhile when updating the value is more common
than reading it.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11695
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list