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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 25
    • Component/s: 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.

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

              Created:
              Updated: