RFR: 8351651: Cleanup LockStack::is_owning_thread

Zhengyu Gu zgu at openjdk.org
Tue Mar 11 12:56:56 UTC 2025


On Tue, 11 Mar 2025 12:15:15 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> This is a minor mostly trivial change I found while reading through code looking for something else.
> Tested with tier1-4.

src/hotspot/share/runtime/lockStack.cpp line 80:

> 78: #ifndef PRODUCT
> 79: bool LockStack::is_owning_thread(JavaThread* current) const {
> 80:  JavaThread* thread = JavaThread::cast(current);

Superfluous `cast`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23981#discussion_r1989199639


More information about the hotspot-runtime-dev mailing list