On Mon, 14 Nov 2022 07:32:25 GMT, Thomas Stuefe <stu...@openjdk.org> wrote:

>> This is a breakout from 
>> [JDK-8293114](https://bugs.openjdk.org/browse/JDK-8293114), which is starved 
>> for reviews. So I attempt to break up that fix into smaller units which are 
>> hopefully easier to review separately.
>> 
>> We can trim the C-heap manually using jcmd since 
>> [JDK-8268893](https://bugs.openjdk.org/browse/JDK-8268893). This patch 
>> reshapes this code, cleaning it up in an OS-agnostic way. That will allow us 
>> to add implementions for other platforms (I have this on my list for AIX at 
>> least) and make review of 8293114 easier.
>
> Thomas Stuefe has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Feedback David

Okay. I have some reservations about this style of approach but the precedents 
are there. I'd argue that for single-use situations like this and 
os::map_stack_shadow_pages that a XXX_ONLY(foo();) in the shared code would be 
acceptable. Others may disagree.

Thanks.

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

Marked as reviewed by dholmes (Reviewer).

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

Reply via email to