Slow computation of JavaFrameGCRoot.getThreadGCRoot() for huge number of threads (>100.000) was fixed in GH-309. However when using TreeMap instead of LongHashMap the JavaFrameGCRoot.getThreadGCRoot() is roughly 20x faster on the test case with 400.000 threads.
Slow computation of JavaFrameGCRoot.getThreadGCRoot() for huge number of threads (>100.000) was fixed in GH-309. However when using
TreeMapinstead ofLongHashMaptheJavaFrameGCRoot.getThreadGCRoot()is roughly 20x faster on the test case with 400.000 threads.