RFR: 8283287: Spring Cleaning for ClassLoader.c
Thomas Stuefe
stuefe at openjdk.java.net
Thu Mar 17 10:50:33 UTC 2022
On Wed, 16 Mar 2022 21:25:37 GMT, Tyler Steele <duke at openjdk.java.net> wrote:
> As mentioned in the issue, I'd like to perform the following tidying on ClassLoader.c
>
> - Alphabetize includes.
> - Replace 'if (ptr == 0)' with 'if (ptr == NULL)'.
> - Replace 'return 0' with 'return NULL'.
Looks good in general. Question inline.
src/java.base/share/native/libjava/ClassLoader.c line 27:
> 25:
> 26: #include <assert.h>
> 27: #include <errno.h>
Whats errno.h for?
-------------
PR: https://git.openjdk.java.net/jdk/pull/7846
More information about the core-libs-dev
mailing list