RFR: 8189633: Missing -Xcheck:jni checking for DeleteWeakGlobalRef

Daniel D. Daugherty daniel.daugherty at oracle.com
Wed Aug 21 23:19:17 UTC 2019


On 8/21/19 7:17 PM, Kim Barrett wrote:
>> On Aug 21, 2019, at 7:14 PM, Daniel D. Daugherty <daniel.daugherty at oracle.com> wrote:
>>
>> On 8/19/19 9:10 PM, Kim Barrett wrote:
>>
>> src/hotspot/share/prims/jniCheck.cpp
>>      L1931:       if (ref && !JNIHandles::is_weak_global_handle(ref)) {
>>          Possible implied boolean. Perhaps:
>>
>>                   if (ref != NULL && !JNIHandles::is_weak_global_handle(ref)) {
>>
>> Thumbs up! Your call on whether to fix the possible implied boolean.
>> No need for another webrev if you do change it.
> I used an implicit boolean for cultural compatibility with nearby code.  That new block is
> cribbed from the DeleteGlobalRef variant.

I suspected as much when I read thru David's comments after I finished
my review.

Dan

>
> Thanks for reviewing.
>



More information about the hotspot-runtime-dev mailing list