RFR: 8324881: ObjectSynchronizer::inflate(Thread* current...) is invoked for non-current thread [v2]

Axel Boldt-Christmas aboldtch at openjdk.org
Wed Jan 31 06:58:02 UTC 2024


On Wed, 31 Jan 2024 01:26:54 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Axel Boldt-Christmas has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add regression test
>
> src/hotspot/share/runtime/synchronizer.cpp line 521:
> 
>> 519: }
>> 520: 
>> 521: void ObjectSynchronizer::enter(Handle obj, BasicLock* lock, JavaThread* locking_thread, JavaThread* current) {
> 
> Do we actually need to pass in the current thread? What is it used for - ResourceMarks?

It is definitely an alternative to simply use Thread::current. That is all it is used for throughout this code.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17626#discussion_r1472378080


More information about the hotspot-dev mailing list