On Fri, 18 Mar 2022 15:22:48 GMT, Tyler Steele <[email protected]> wrote:
>> src/java.base/share/native/libjava/ClassLoader.c line 104:
>>
>>> 102: // On AIX malloc(0) returns NULL which looks like an out-of-memory
>>> condition; so adjust it to malloc(1)
>>> 103: #ifdef _AIX
>>> 104: body = (jbyte *)malloc(length == 0 ? 1 : length);
>>
>> Can we use identification in the ifdef/else/endif block to make it a bit
>> more readable. Also can you trim down the comment or split it over two lines
>> to avoid the really long line (it makes it a bit easier for future
>> side-by-side reviews).
>
> I can split down the comment if you prefer. It might be appropriate to do in
> the as-yet-unmerged cleanup PR I have open for the same file.
>
> I am not sure what you mean by 'use identification'. Can you clarify?
I think it’s a typo of “indentation”, e.g.:
Suggestion:
body = (jbyte *)malloc(length == 0 ? 1 : length);
-------------
PR: https://git.openjdk.java.net/jdk/pull/7829