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

HPI panic callback is dead code

XMLWordPrintable

    • b12
    • generic
    • generic

      In the fastdebug and debug builds, libhpi.so may call our HPI panic() callback during a sysAssert() failure. Currently the callback is unimplemented and results in a call to Unimplemented(), masking the true cause of the failure. We should provide an implementation for the sake of better error reporting.

      For further background see bug JDK-6502237.
      I don't think hpi should call back to the VM to die anyway, but call regular unix assert, but we should give an error and add that the bug is in hpi not the VM.

      This is annoying that so many linux tests intermittently fail with this hpi bug.
      I changed this hpi_panic from Unimplemented() crash to a warning(Unimplemented) because bug number 6626677 was affecting testing. This is safe for this particular bug anyway.

      As part of this fix, the crash should be restored in the VM for jdk7 only (there's apparently a gate we have in the vm) after bug 6626677 is fixed. If the jdk fix is backported to jdk 6 we can enable the crash unconditionally in the VM, but after HS13.

            bpb Brian Burkhalter
            sbohne Steve Bohne (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: