-
Bug
-
Resolution: Fixed
-
P3
-
None
-
repo-panama
The current implementation of CLinker::systemLookup can not find stdio functions like printf on Windows 10.
On Windows 10, we load ucrtbase.dll as a library for the system lookup. But, this dll doesn't contain many stdio functions, because they are implemented as inline functions in the standard library header files.
We can use a fallback library that exposes pointer to these functions. The fallback library would be compiled by a native compiler, which would generate the needed code for the inline functions in the fallback library. The pointer can then be looked up by the system lookup.
On Windows 10, we load ucrtbase.dll as a library for the system lookup. But, this dll doesn't contain many stdio functions, because they are implemented as inline functions in the standard library header files.
We can use a fallback library that exposes pointer to these functions. The fallback library would be compiled by a native compiler, which would generate the needed code for the inline functions in the fallback library. The pointer can then be looked up by the system lookup.
- relates to
-
JDK-8268327 Upstream: 8268169: The system lookup can not find stdio functions such as printf on Windows 10
-
- Resolved
-