RFR: 8314225: SIGSEGV in JavaThread::is_lock_owned [v10]

Kevin Walls kevinw at openjdk.org
Wed May 8 10:49:57 UTC 2024


On Wed, 8 May 2024 09:59:43 GMT, Dean Long <dlong at openjdk.org> wrote:

>> Kevin Walls has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   null nullptr oops
>
> src/hotspot/share/runtime/vframeArray.cpp line 95:
> 
>> 93:         BasicObjectLock* dest = _monitors->at(index);
>> 94:         if (monitor->owner_is_scalar_replaced()) {
>> 95:           dest->set_obj(nullptr);
> 
> It looks like there is an existing bug that allows dest->lock() to be uninitialized here, which could cause problems later on in unpack_on_stack if move_to sees a "neutral" value and tries to inflate.

I created https://bugs.openjdk.org/browse/JDK-8331918 so this can be looked at separately.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18940#discussion_r1593830347


More information about the hotspot-dev mailing list