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

David Holmes dholmes at openjdk.org
Tue Jun 4 04:51:17 UTC 2024


On Mon, 3 Jun 2024 22:03:13 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> Serguei Spitsyn has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   review: consistency and stylistical corrections
>
> 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"?

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

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


More information about the serviceability-dev mailing list