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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 22
    • 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.

            dqu Daohan Qu
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: