From 6c9128f9bd7dbbbc7140cd23cdfd91a62be67bb0 Mon Sep 17 00:00:00 2001 From: Christian Despres Date: Thu, 17 Oct 2024 12:48:59 -0400 Subject: [PATCH] Mark TR_J9VMServer virtual methods with override The isIndexableDataAdrPresent() and isOffHeapAlocationEnabled() methods override the TR_J9VMBase implementations. They are now marked with override; a compilation error results without it with clang in the default configuration (with -Werror). Signed-off-by: Christian Despres --- runtime/compiler/env/VMJ9Server.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/compiler/env/VMJ9Server.hpp b/runtime/compiler/env/VMJ9Server.hpp index 727f23a6f70..b0d1056fff5 100644 --- a/runtime/compiler/env/VMJ9Server.hpp +++ b/runtime/compiler/env/VMJ9Server.hpp @@ -252,8 +252,8 @@ class TR_J9ServerVM: public TR_J9VM virtual bool inSnapshotMode() override; virtual bool isSnapshotModeEnabled() override; virtual bool isPortableRestoreModeEnabled() override; - virtual bool isIndexableDataAddrPresent(); - virtual bool isOffHeapAllocationEnabled(); + virtual bool isIndexableDataAddrPresent() override; + virtual bool isOffHeapAllocationEnabled() override; private: bool instanceOfOrCheckCastHelper(J9Class *instanceClass, J9Class* castClass, bool cacheUpdate);