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

Add debug-options to compiler directives

XMLWordPrintable

      Compiler directives are a great way to narrow down compiler issues and to provide workarounds.

      One feature that would be good is if compiler directives could also be used to further debug issues. If you have found the problematic compilation, it would be good if one could turn on sanity checks, verbose logging, or even dumping of intermediate states by adding to the compiler directives.

      The JEP, JDK-8046155, contains some examples, for example PrintAssembly: True.

      Other ideas could be (and we may want to spawn additional bugs for this):

      * Turn on asserts for matching methods (would require changing the asserts into a tests in product mode)
      * Dump Intermediate Representation between compiler steps (something similar may currently be available in debug builds, would have to move to production)
      * Add additional verification or sanity checks for the matching methods

            Unassigned Unassigned
            mcastegr Mattis Castegren (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: