RFR: 8326716: JVMTI spec: clarify what nullptr means for C/C++ developers [v5]

Chris Plummer cjplummer at openjdk.org
Tue Jun 4 19:03:00 UTC 2024


On Tue, 4 Jun 2024 07:01:54 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> 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.

Yes, my point was that this section is only for return values. The section is titled "Function Return Values". Maybe we should add another short section just before this one to describe what is meant by "null pointer".

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19257#discussion_r1626480428


More information about the serviceability-dev mailing list