Integrated: JDK-8301378: CodeHeap has virtual methods that are not overridden

Justin King jcking at openjdk.org
Tue Jan 31 06:38:05 UTC 2023


On Mon, 30 Jan 2023 18:24:52 GMT, Justin King <jcking at openjdk.org> wrote:

> Remove unused `virtual` specifiers on `CodeHeap` methods. Virtual dispatch is not free in C++ and usually incurs a vtable lookup unless the compiler can prove the type is final, which with the current setup is not feasible.

This pull request has now been integrated.

Changeset: a6867a7e
Author:    Justin King <jcking at openjdk.org>
Committer: Tobias Hartmann <thartmann at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a6867a7ec28ff1eac73a959af481a3a725c8dadd
Stats:     4 lines in 1 file changed: 0 ins; 0 del; 4 mod

8301378: CodeHeap has virtual methods that are not overridden

Reviewed-by: kvn, thartmann

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

PR: https://git.openjdk.org/jdk/pull/12298


More information about the hotspot-runtime-dev mailing list