RFR: 8355394: ZGC: Windows compile error in ZUtils

Thomas Schatzl tschatzl at openjdk.org
Wed Apr 23 14:05:52 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.

Marked as reviewed by tschatzl (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/24826#pullrequestreview-2787457824


More information about the hotspot-gc-dev mailing list