This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/11695] DWIM promotion of ++ to <<<


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]