Hi,

I'm trying to track down what holds onto an object (a vector) I've sent
through mult. I got lost in the ioc_macros/take! and its
AtomicReferenceArray state.

I've sent the value through the mult and it got processed. aftewards, mult
processing go block (
https://github.com/clojure/core.async/blob/master/src/main/clojure/clojure/core/async.clj#L673)
gets parked as no other value is sent to the mult. However, it seems
that
previous value is still stored in the state somewhere. Here is the part of
the reference tree from jvisualvm

       <- [11]     - class: java.lang.Object[], value:
clojure.lang.PersistentVector #10375
        <- array     - class:
java.util.concurrent.atomic.AtomicReferenceArray, value: java.lang.Object[]
#67883 (32 items)
         <- state     - class:
clojure.core.async.impl.ioc_macros$take_BANG_$fn__14271, value:
java.util.concurrent.atomic.AtomicReferenceArray #1
          <- f     - class:
clojure.core.async.impl.ioc_macros$fn_handler$reify__14266, value:
clojure.core.async.impl.ioc_macros$take_BANG_$fn__14271 #1
           <- item     - class: java.util.LinkedList$Node, value:
clojure.core.async.impl.ioc_macros$fn_handler$reify__14266 #1
            <- last     - class: java.util.LinkedList, value:
java.util.LinkedList$Node #4
             <- takes     - class:
clojure.core.async.impl.channels.ManyToManyChannel, value:
java.util.LinkedList #2
              <- ch     - class: clojure.core.async$mult$reify__14875,
value: clojure.core.async.impl.channels.ManyToManyChannel #1

Am I right that IOC state machine does not clear past value?

JW

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to