<div dir="ltr"><div>Hello,</div><div><br></div><div>I am not sure if this is the appropriate venue or if I should be reporting bugs via the Oracle bug page. Apologies if this is incorrect; this is also my first mailing list.<br></div><div><br></div><div>I am the author of a library that brings Loom related functionality into Clojure: <a href="https://github.com/teknql/tapestry">https://github.com/teknql/tapestry</a></div><div><br></div><div>I recently stumbled upon an interesting behavior where recursively spawning fibers can cause the program to block infinitely. The (clojure) code that can reproduce this can be seen at this gist: <a href="https://gist.github.com/rschmukler/314b786206246c906caa6a2f99d731a7">https://gist.github.com/rschmukler/314b786206246c906caa6a2f99d731a7</a></div><div><br></div><div>Basically if you have 4 virtual threads that recursively spawn 4  virtual threads, which recursively spawn 4  virtual threads, which recursively spawn 4  virtual threads, you will hit some sort of blocking issue and your code will freeze. 4^4 = 256  virtual threads  which I think should be very doable for Loom.</div><div><br></div><div>In case it matters here are the versions and system issue:</div><br><div>OpenJDK 19.0.2 and OpenJDK 20.0.1</div><div>Linux 6.1.21</div><div>16 (w/ hyperthreading) cores.</div><div><br></div><div>Again apologies if this isn't the appropriate forum to report this (wasn't sure since Loom is in preview still). I really appreciate all that you are doing to bring virtual threads to the JVM.</div><div><br></div><div>Cheers,</div><div>Ryan<br></div><div><br></div><div><br></div><div><br></div></div>