[erlang-patches] erlang-patches Digest, Vol 35, Issue 3

Scott Lystig Fritchie <>
Fri Nov 25 23:42:53 CET 2011


 wrote:

b-ed> OTP-9632 An ERTS internal, generic, many to one, lock-free queue
b-ed> for communication between threads has been introduced. The many to
b-ed> one scenario is very common in ERTS, so it can be used in a lot of
b-ed> places in the future. Currently it is used by scheduling of
b-ed> certain jobs, and the async thread pool, but more uses are planned
b-ed> for the future.

Hi, Bj?rn-Egil, I noticed that new data structure created a conflict
with my DTrace patches.  The conflict was easy to fix, but there was
something in the old data structure that seems missing from the new one:
a count of the queue size.

With my limited squinting at the new structure, what would be required to
make the queue length available?  It'd be very nice if DTrace probes could
report the length of the queue when enqueueing/dequeueing.  Knowing the
queue length is easy in R14B04 but seems difficult with the new data
structure.

-Scott


More information about the erlang-patches mailing list