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

Serguei Spitsyn sspitsyn at openjdk.org
Fri May 17 00:43:19 UTC 2024


On Thu, 16 May 2024 19:26:07 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> src/hotspot/share/prims/jvmti.xml line 1008:
>> 
>>> 1006:     function descriptions.  Empty lists, arrays, sequences, etc are
>>> 1007:     returned as <code>nullptr</code> which is C programming language
>>> 1008:     <code>null</code> pointer.
>> 
>> Shouldn't this be "NULL"?  In any case, I think it would be helpful to expand this a bit to make it clear that usages of "nullptr" in parameter and error descriptions should be read or treated as  "NULL" when developing an agent in C rather than C++.
>
> Yes, I think it should by NULL.

Thank you for suggestions. I've changed it as Kim suggested below.
Please, let me know if it is not good enough, or some additions are needed.

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

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


More information about the serviceability-dev mailing list