News for hackers. Stuff that matters.
Re:Java virtual threads caused a deadlock in TPC-C for Postg... by tveita on Tuesday January 16, 2024 @05:20AM (#39011637)
There are ways to find problem sections without having to trigger a full deadlock: https://openjdk.org/jeps/444

  The system property jdk.tracePinnedThreads triggers a stack trace when a thread blocks while pinned. Running with -Djdk.tracePinnedThreads=full prints a complete stack trace when a thread blocks while pinned, highlighting native frames and frames holding monitors. Running with -Djdk.tracePinnedThreads=short limits the output to just the problematic frames.

There are no comments on this comment yet.