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

Don't limit debug information for fastdebug JDK native libraries

XMLWordPrintable

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

      Since long time ago, native libraries in JDK has been compiled with -g1 instead of -g, when doing a fastdebug build with gcc. (This does not apply to hotspot which is always compiled with -g.)

      This means that the debug information generated is limited. The gcc manual says this about level 1:

      "Level 1 produces minimal information, enough for making backtraces in parts of the program that you don't plan to debug. This includes descriptions of functions and external variables, and line number tables, but no information about local variables."

      The reason for doing this is claimed to be concerns over size. However, debug symbols images only increased from 129 MB to 135 MB with -g instead of -g1. This does not seem like a valid concern.

      As part of a general effort of simplifying and unifying the various options, I'd like to turn this to -g, so we have consistent debug capabilities regardless of build type.

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

              Created:
              Updated:
              Resolved: