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

Always use -Z7 for debug symbols when compiling on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 11
    • 11
    • infrastructure
    • None
    • b04

      For some time, we have used two different ways of handling debug symbols on Windows. Hotspot has been built using -Z7, and the JDK libraries using -Zi. -Z7 is preferable, since it does not create separate .pdb files for each source file; instead debug data is embedded in the .obj file, just like all other compilers do. This aligns better with the rest of the platforms. It also means we get rid of the mspdbsrv process, which serializes access to pdb files, and which has proven to be a bottleneck in certain situations.

      This does not mean that the end product is different: the linker still generates a .pdb file for the library/executable, and strip the debug information from the library/executable.

      This will also allow for some well-needed cleanups. With this change, hotspot and JDK libs finally build with the same debug symbol flags, and we can remove the hack that was introduced with the new hotspot build to override the debug symbol flags. Also, now that -Zi is ditched, we don't need the special handling of per-source-file pdb's.

            ihse Magnus Ihse Bursie
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: