RFR: 8268368: Adopt cast notation for JavaThread conversions [v2]

Guoxiong Li gli at openjdk.java.net
Tue Jun 22 10:56:25 UTC 2021


On Tue, 22 Jun 2021 10:21:45 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

>> Guoxiong Li has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix incorrect use of the method cast
>
> src/hotspot/share/runtime/thread.hpp line 1432:
> 
>> 1430:     assert(t->is_Java_thread(), "incorrect cast to const JavaThread");
>> 1431:     return static_cast<const JavaThread*>(t);
>> 1432:   }
> 
> Now that you've written the code in-place, you could  remove the `inline` specifier.

Fixed. Thanks @stefank for your review.

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

PR: https://git.openjdk.java.net/jdk/pull/4546


More information about the serviceability-dev mailing list