I tried to check Monitor Cache Dump in HSDB, but it hangs and OOME occurred.
How to reproduce:
1. Run JShell
2. Attach HSDB to JShell
$ jhsdb hsdb --pid <PID>
3. Select "Monitor Cache Dump" in "Tools" menu.
ObjectSynchronizer$ObjectMonitorIterator switches monitor block list
when index == 0 at next(). However next() switches blockAddr only.
We should also switch "block".
I uloaded webrev for this issue. Could you review it?
I cannot access JPRT. So I need a sponsor.