diff --git a/src/hotspot/share/gc/epsilon/epsilonInitLogger.hpp b/src/hotspot/share/gc/epsilon/epsilonInitLogger.hpp index 0030a32f0db..ba254e93c22 100644 --- a/src/hotspot/share/gc/epsilon/epsilonInitLogger.hpp +++ b/src/hotspot/share/gc/epsilon/epsilonInitLogger.hpp @@ -1,4 +1,5 @@ /* + * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2020, Red Hat, Inc. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -29,7 +30,7 @@ class EpsilonInitLogger : public GCInitLogger { protected: - virtual void print_gc_specific(); + void print_gc_specific() override; public: static void print(); diff --git a/src/hotspot/share/gc/g1/g1InitLogger.hpp b/src/hotspot/share/gc/g1/g1InitLogger.hpp index 9c4057988d6..f1412c674d0 100644 --- a/src/hotspot/share/gc/g1/g1InitLogger.hpp +++ b/src/hotspot/share/gc/g1/g1InitLogger.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -29,9 +29,9 @@ class G1InitLogger : public GCInitLogger { protected: - virtual void print_heap(); - virtual void print_workers(); - virtual void print_gc_specific(); + void print_heap() override; + void print_workers() override; + void print_gc_specific() override; public: static void print(); }; diff --git a/src/hotspot/share/gc/parallel/parallelInitLogger.hpp b/src/hotspot/share/gc/parallel/parallelInitLogger.hpp index 2a3b6349964..fa8c3503ded 100644 --- a/src/hotspot/share/gc/parallel/parallelInitLogger.hpp +++ b/src/hotspot/share/gc/parallel/parallelInitLogger.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -29,7 +29,7 @@ class ParallelInitLogger : public GCInitLogger { protected: - virtual void print_heap(); + void print_heap() override; public: static void print(); };