add jdk.test.whitebox.code.Compiler.uncommonTrapsHavePreciseBCIs method

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 22
    • Component/s: hotspot
    • Fix Understood

      To resolve JDK-8309671, the short cut taken was to hard code the assumption that Graal does not use precise BCIs for uncommon traps (i.e. deoptimization can restart the interpreter at a bytecode instruction earlier than the one associated with the uncommon trap).

      This means the serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitor.java test will break if the assumption is invalidated in future. Instead, the whitebox API should be extended to ask a JIT compiler about this behavior. That is, an uncommonTrapsHavePreciseBCIs() method should be added to jdk.test.whitebox.code.Compiler.

            Assignee:
            Daohan Qu
            Reporter:
            Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: