On Tuesday, 28 June 2016 at 21:01:20 UTC, John Colvin wrote:
On Tuesday, 28 June 2016 at 20:12:29 UTC, luminousone wrote:
Is puts high enough latency that, that main thread can fill
the message queue faster then start can exhaust it? If you put
a call to sleep for 1ms in the main loop does it have the same
result?
It appears that adding a 1ms sleep causes the leak to
disappear. Still seems like bad behaviour from the GC though,
perhaps indicative of a bug.
Not necessarily, if the 10K allocations results in system calls,
but try to remove the 1ms delay, set setMaxMailboxSize to a
millon and set it to ignore. (i.e. if the box is full you bypass
sending).