JDK-8231318 : Several compiler/aot tests fail for JDK11 on Windows when only MSVC 2017 is installed
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-09-20
  • Updated: 2019-10-30
  • Resolved: 2019-10-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11
11.0.6 b01Fixed
Related Reports
Relates :  
Relates :  
Description
OpenJDK 11 can be built with Microsoft Visual Studio 2017, as per https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms. If it is build and/or tested on a Windows system, where only MSVC2017 is installed, several aot tests will fail.

This can be fixed with recent changes to src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/Linker.java which were brought by Grall updates JDK-8206992 and JDK-8218074.

These changes will add the ability of aot to recognize MSVC2017.

The failing tests are
compiler/aot/DeoptimizationTest.java
compiler/aot/RecompilationTest.java
compiler/aot/SharedUsageTest.java
compiler/aot/calls/fromAot/AotInvokeDynamic2AotTest.java
compiler/aot/calls/fromAot/AotInvokeDynamic2CompiledTest.java
compiler/aot/calls/fromAot/AotInvokeDynamic2InterpretedTest.java
compiler/aot/calls/fromAot/AotInvokeDynamic2NativeTest.java
compiler/aot/calls/fromAot/AotInvokeInterface2AotTest.java
compiler/aot/calls/fromAot/AotInvokeInterface2CompiledTest.java
compiler/aot/calls/fromAot/AotInvokeInterface2InterpretedTest.java
compiler/aot/calls/fromAot/AotInvokeInterface2NativeTest.java
compiler/aot/calls/fromAot/AotInvokeSpecial2AotTest.java    
compiler/aot/calls/fromAot/AotInvokeSpecial2CompiledTest.java
compiler/aot/calls/fromAot/AotInvokeSpecial2InterpretedTest.java
compiler/aot/calls/fromAot/AotInvokeSpecial2NativeTest.java       
compiler/aot/calls/fromAot/AotInvokeStatic2AotTest.java              
compiler/aot/calls/fromAot/AotInvokeStatic2CompiledTest.java    
compiler/aot/calls/fromAot/AotInvokeStatic2InterpretedTest.java 
compiler/aot/calls/fromAot/AotInvokeStatic2NativeTest.java        
compiler/aot/calls/fromAot/AotInvokeVirtual2AotTest.java           
compiler/aot/calls/fromAot/AotInvokeVirtual2CompiledTest.java 
compiler/aot/calls/fromAot/AotInvokeVirtual2InterpretedTest.java 
compiler/aot/calls/fromAot/AotInvokeVirtual2NativeTest.java                         
compiler/aot/calls/fromCompiled/CompiledInvokeDynamic2AotTest.java        
compiler/aot/calls/fromCompiled/CompiledInvokeInterface2AotTest.java        
compiler/aot/calls/fromCompiled/CompiledInvokeSpecial2AotTest.java          
compiler/aot/calls/fromCompiled/CompiledInvokeStatic2AotTest.java             
compiler/aot/calls/fromCompiled/CompiledInvokeVirtual2AotTest.java            
compiler/aot/calls/fromInterpreted/InterpretedInvokeDynamic2AotTest.java   
compiler/aot/calls/fromInterpreted/InterpretedInvokeInterface2AotTest.java   
compiler/aot/calls/fromInterpreted/InterpretedInvokeSpecial2AotTest.java     
compiler/aot/calls/fromInterpreted/InterpretedInvokeStatic2AotTest.java        
compiler/aot/calls/fromInterpreted/InterpretedInvokeVirtual2AotTest.java 
compiler/aot/calls/fromNative/NativeInvokeSpecial2AotTest.java
compiler/aot/calls/fromNative/NativeInvokeStatic2AotTest.java  
compiler/aot/calls/fromNative/NativeInvokeVirtual2AotTest.java 
compiler/aot/cli/DisabledAOTWithLibraryTest.java                  
compiler/aot/cli/MultipleAOTLibraryTest.java                           
compiler/aot/cli/SingleAOTLibraryTest.java                             
compiler/aot/cli/SingleAOTOptionTest.java                              
compiler/aot/cli/jaotc/AtFileTest.java                                        
compiler/aot/cli/jaotc/CompileClassTest.java                            
compiler/aot/cli/jaotc/CompileClassWithDebugTest.java           
compiler/aot/cli/jaotc/CompileDirectoryTest.java                          
compiler/aot/cli/jaotc/CompileJarTest.java                                    
compiler/aot/cli/jaotc/CompileModuleTest.java                             
compiler/aot/cli/jaotc/IgnoreErrorsTest.java                                  
compiler/aot/cli/jaotc/ListOptionTest.java                                      
compiler/aot/cli/jaotc/ListOptionWrongFileTest.java                      
compiler/aot/fingerprint/SelfChanged.java                                    
compiler/aot/fingerprint/SelfChangedCDS.java                             
compiler/aot/fingerprint/SuperChanged.java                                 
compiler/aot/verification/ClassAndLibraryNotMatchTest.java         
compiler/aot/verification/vmflags/NotTrackedFlagTest.java            
compiler/aot/verification/vmflags/TrackedFlagTest.java
Comments
URL: https://hg.openjdk.java.net/jdk-updates/jdk11u/rev/182a6cbf8e1b User: goetz Date: 2019-10-30 09:55:51 +0000
30-10-2019

URL: https://hg.openjdk.java.net/jdk-updates/jdk11u-dev/rev/182a6cbf8e1b User: clanger Date: 2019-10-04 09:25:00 +0000
04-10-2019

Fix request (11u) This is an issue that applies only to JDK11 updates. But its fix consists of a downport of minor parts of the changes of JDK-8206992 and JDK-8218074. I asked for review on the mailing list: https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-September/001923.html. With the fix applied, the mentioned tests in the bug descriptions pass on Windows hosts where only MSVC 2017 is installed. Webrev: http://cr.openjdk.java.net/~clanger/webrevs/8231318.11u-dev.0/
24-09-2019