Integrated: 8355394: ZGC: Windows compile error in ZUtils
Stefan Karlsson
stefank at openjdk.org
Wed Apr 23 14:12:57 UTC 2025
On Wed, 23 Apr 2025 12:59:10 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: 023f30bc
Author: Stefan Karlsson <stefank at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/023f30bcaa820080ed5b5aa6f9a0a996a62c7d34
Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod
8355394: ZGC: Windows compile error in ZUtils
Co-authored-by: Axel Boldt-Christmas <aboldtch at openjdk.org>
Reviewed-by: aboldtch, tschatzl
-------------
PR: https://git.openjdk.org/jdk/pull/24826
More information about the hotspot-gc-dev
mailing list