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

Serguei Spitsyn sspitsyn at openjdk.org
Tue Jun 4 06:41:08 UTC 2024


On Tue, 4 Jun 2024 04:48:04 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> src/hotspot/share/prims/jvmti.xml line 1007:
>> 
>>> 1005:     explicitly deallocate. This is indicated in the individual <jvmti/>
>>> 1006:     function descriptions.  Empty lists, arrays, sequences, etc are
>>> 1007:     returned as a null pointer (C <code>NULL</code> or C++ <code>nullptr</code>).
>> 
>> Why describe what is meant by a "null pointer" here when it is not done elsewhere?
>
> 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.

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

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


More information about the serviceability-dev mailing list