Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8268169

The system lookup can not find stdio functions such as printf on Windows 10

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • repo-panama
    • tools

      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.

            jvernee Jorn Vernee
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: