On Tue, 10 Nov 2020 21:37:40 GMT, Daniel D. Daugherty <dcu...@openjdk.org> wrote:
>> If you only need to free CHeap memory, you can do: >> size_t deleted_count = 0; >> ThreadBlockInVM tbivm(self); >> for (ObjectMonitor* monitor: delete_list) { >> delete monitor; >> deleted_count++; >> } >> } > > Ahhh... but that only works if we release the oopStorage when > we deflate. Okay. I grok it now, but don't want to do that in this > changeset. I would want a complete stress test cycle for that > kind of a change. Filed this new RFE: JDK-8256302 releasing oopStorage when deflating allows for faster deleting https://bugs.openjdk.java.net/browse/JDK-8256302 ------------- PR: https://git.openjdk.java.net/jdk/pull/642