RFR: 8326716: JVMTI spec: clarify what nullptr means for C/C++ developers [v5]
Alan Bateman
alanb at openjdk.org
Tue Jun 4 07:04:02 UTC 2024
On Tue, 4 Jun 2024 06:38:36 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
>> The intent is to provide a definition of what a null pointer is, for both C and C++ programs. Is there a better place to do that so that elsewhere the spec can simply to refer to "a null pointer" or "null"?
>
> Thanks, David. I also feel this clarification is still useful.
I think this is the right place but it is only for return values. There are a few functions where a parameter value can be a null pointer, e.g. in GetThreadState, SuspendThread, GetOwnedMonitorInfo the thread parameter can be a null pointer to mean the current thread. I don't think the introduction section has anywhere right now to say what a null pointer means.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19257#discussion_r1625458511
More information about the serviceability-dev
mailing list