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

Make Compilation::current() and Compile::current() safer

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • hotspot

      I recently hunted a bug for an hour until I realized that I had accessed ciEnv::compiler_data() thinking it was C2 `Compile` when, in fact, it was C1 `Compilation`. Then I felt stupid. Still, an assert would be easy to do and would have saved me time.

            stuefe Thomas Stuefe
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: