RFR: JDK-8312625: Test serviceability/dcmd/vm/TrimLibcHeapTest.java failed: RSS use increased

Thomas Stuefe stuefe at openjdk.org
Wed Jul 26 05:42:02 UTC 2023


On Tue, 25 Jul 2023 12:54:10 GMT, Kevin Walls <kevinw at openjdk.org> wrote:

>> Trivial patch.
>> 
>> The test just fires `jcmd System.trim_native_heap`, but without preparing any special memory allocation conditions. Typically, we end up firing the command when VM initialization is done, and therefore end up trimming a lot of memory. But once in a blue moon concurrent allocations may be ongoing, so we may not trim anything, or even see increased RSS.
>> 
>> The patch just loosens the success condition to succeed if the trim happened, irregardless of how much memory had been trimmed.
>
> Looks good to me.

Thank you @kevinjwalls ! Unfortunately, you are not a Reviewer yet, so I guess I need a second one. @dholmes-ora ?

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

PR Comment: https://git.openjdk.org/jdk/pull/15009#issuecomment-1651009904


More information about the serviceability-dev mailing list