RFR: 8372135: clang compilation error
duke
duke at openjdk.org
Wed Nov 19 08:40:32 UTC 2025
On Wed, 19 Nov 2025 07:59:32 GMT, Jan Kratochvil <jkratochvil at openjdk.org> wrote:
> clang-20.1.8-4.fc42.x86_64
>
> src/hotspot/os/linux/cgroupV1Subsystem_linux.hpp:212:10: error: 'is_containerized' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
> 212 | bool is_containerized();
> | ^
> src/hotspot/os/linux/cgroupSubsystem_linux.hpp:284:18: note: overridden virtual function is here
> 284 | virtual bool is_containerized() = 0;
> | ^
> In file included from src/hotspot/os/linux/cgroupSubsystem_linux.cpp:27:
> src/hotspot/os/linux/cgroupV1Subsystem_linux.hpp:214:18: error: 'container_type' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
> 214 | const char * container_type() {
> | ^
> src/hotspot/os/linux/cgroupSubsystem_linux.hpp:288:26: note: overridden virtual function is here
> 288 | virtual const char * container_type() = 0;
> | ^
> In file included from src/hotspot/os/linux/cgroupSubsystem_linux.cpp:27:
> src/hotspot/os/linux/cgroupV1Subsystem_linux.hpp:217:54: error: 'memory_controller' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
> 217 | CachingCgroupController<CgroupMemoryController>* memory_controller() { return _memory; }
> | ^
> src/hotspot/os/linux/cgroupSubsystem_linux.hpp:289:62: note: overridden virtual function is here
> 289 | virtual CachingCgroupController<CgroupMemoryController>* memory_controller() = 0;
> | ^
> In file included from src/hotspot/os/linux/cgroupSubsystem_linux.cpp:27:
> src/hotspot/os/linux/cgroupV1Subsystem_linux.hpp:218:51: error: 'cpu_controller' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
> 218 | CachingCgroupController<CgroupCpuController>* cpu_controller() { return _cpu; }
> | ^
> src/hotspot/os/linux/cgroupSubsystem_linux.hpp:290:59: note: overridden virtual function is here
> 290 | virtual CachingCgroupController<CgroupCpuController>* cpu_controller() = 0;
> | ^
> In file included from src/hotspot/os/linux/cgroupSubsystem_linux.cpp:27:
> src/hotspot/os/linux/cgroupV1Subsystem_linux.hpp:219:30: error: 'cpuacct_controller' overrides a member function but is not marked...
@jankratochvil
Your change (at version 639fa86234a33468786ab6b9b8fc8cd7b531b0b2) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28384#issuecomment-3551433730
More information about the hotspot-runtime-dev
mailing list