RFR: 8355394: ZGC: Windows compile error in ZUtils
Stefan Karlsson
stefank at openjdk.org
Wed Apr 23 13:06:03 UTC 2025
We got a report of an encountered of the following compilation error:
src\hotspot\share\gc/z/zUtils.inline.hpp(87): error C2066: cast to function type is illegal
src\hotspot\share\gc/z/zUtils.inline.hpp(97): note: see reference to function template instantiation 'void ZUtils::sort<zbacking_index,sort_zbacking_index_array::<lambda_1>>(T *,size_t,Comparator)' being compiled
with
[
T=zbacking_index,
Comparator=sort_zbacking_index_array::<lambda_1>
]
src\hotspot\share\gc\z\zPhysicalMemoryManager.cpp(303): note: see reference to function template instantiation 'void ZUtils::sort<zbacking_index,sort_zbacking_index_array::<lambda_1>>(T *,int,Comparator)' being compiled
with
[
T=zbacking_index,
Comparator=sort_zbacking_index_array::<lambda_1>
]
make[3]: *** [lib/CompileJvm.gmk:174: jdk/build/windows-x86_64-server-fastdebug/hotspot/variant-server/libjvm/objs/zPhysicalMemoryManager.obj] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [make/Main.gmk:236: hotspot-server-libs] Error 2 (edited)
We don't see this failure in our CI runs but with the help of the reporter we managed to tweak the code to get rid of the failure.
Tested with tier1-2 in our CI.
-------------
Commit messages:
- Fix Windows Error
Changes: https://git.openjdk.org/jdk/pull/24826/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24826&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8355394
Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/24826.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/24826/head:pull/24826
PR: https://git.openjdk.org/jdk/pull/24826
More information about the hotspot-gc-dev
mailing list