RFR: JDK-8286459: compile error with VS2017 in continuationFreezeThaw.cpp
Matthias Baesken
mbaesken at openjdk.java.net
Tue May 10 15:05:13 UTC 2022
After recent changes (loom?) we run into this compile error when using VS2017 :
d:\build\jdk\src\hotspot\share\runtime\continuationFreezeThaw.cpp(2463): error C2440: 'type cast': cannot convert from 'int (__cdecl *)(JavaThread *,intptr_t *)' to 'address'
d:\build\jdk\src\hotspot\share\runtime\continuationFreezeThaw.cpp(2463): note: Context does not allow for disambiguation of overloaded function
d:\build\jdk\src\hotspot\share\runtime\continuationFreezeThaw.cpp(2451): note: see reference to function template instantiation 'void ConfigResolve::resolve<true,BarrierSet::GetType<BarrierSet::CardTableBarrierSet>::type>(void)' being compiled
d:\build\jdk\src\hotspot\share\runtime\continuationFreezeThaw.cpp(2436): note: see reference to function template instantiation 'void ConfigResolve::resolve_gc<true>(void)' being compiled
d:\build\jdk\src\hotspot\share\runtime\continuationFreezeThaw.cpp(2466): error C2440: 'type cast': cannot convert from 'intptr_t *(__cdecl *)(JavaThread *,int)' to 'address'
d:\build\jdk\src\hotspot\share\runtime\continuationFreezeThaw.cpp(2466): note: Context does not allow for disambiguation of overloaded function
An additional cast can be added to make the issue go away.
-------------
Commit messages:
- JDK-8286459
Changes: https://git.openjdk.java.net/jdk/pull/8632/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8632&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8286459
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.java.net/jdk/pull/8632.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/8632/head:pull/8632
PR: https://git.openjdk.java.net/jdk/pull/8632
More information about the hotspot-runtime-dev
mailing list