RFR: 8319876: Reduce memory consumption of VM_ThreadDump::doit [v2]

Long Yang duke at openjdk.org
Fri Nov 10 10:02:31 UTC 2023


> I would like to fix this.
> 
> Create 1000 threads, and the stack depth of each thread is 1000. 
> After running jmx.dumpAllThreads(true, true), the RSS reaches 5.2GiB. 
> After optimization, the RSS is 250MiB.
> 
> I would appreciate it if anyone could review this.

Long Yang has updated the pull request incrementally with one additional commit since the last revision:

  move ResourceMark to before start_vf

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/16598/files
  - new: https://git.openjdk.org/jdk/pull/16598/files/7d144c9e..0ee0e17d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=16598&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=16598&range=00-01

  Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/16598.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16598/head:pull/16598

PR: https://git.openjdk.org/jdk/pull/16598


More information about the hotspot-runtime-dev mailing list