From eb46f2cb9787e0326977a3fb0a6dfaddc914e76c Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 31 Jul 2026 09:16:04 -0700 Subject: [PATCH] account for the caller type added to the stub key by JDK-8389219 --- src/hotspot/share/code/vtableStubs.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/hotspot/share/code/vtableStubs.hpp b/src/hotspot/share/code/vtableStubs.hpp index 7625104c6b7..71699f93d39 100644 --- a/src/hotspot/share/code/vtableStubs.hpp +++ b/src/hotspot/share/code/vtableStubs.hpp @@ -69,8 +69,8 @@ class VtableStub; // VtableStubs creates the code stubs for compiled calls through vtables and itables. There is one -// stub per (type, index), and the stubs are never deallocated. They don't need to be GCed because -// they contain no oops. +// stub per (type, index, caller type), and the stubs are never deallocated. They don't need to be +// GCed because they contain no oops. class VtableStubs : AllStatic { public: // N must be public (some compilers need this for _table) enum { @@ -115,8 +115,9 @@ class VtableStubs : AllStatic { }; -// A VtableStub holds an individual code stub for a particular type (itable or vtable) and index -// pair. There's a one-to-one relationship between a VtableStub and such a pair. +// A VtableStub holds an individual code stub for a particular type (itable or vtable), index, and +// caller type (C1 or unspecified). There's a one-to-one relationship between a VtableStub and such +// a triple. class VtableStub { private: friend class VtableStubs;