Fix delivering async exception while in compiled code.

Change artInstrumentationMethodExitFromCode() to check
for async exceptions.

Also fix kDebugExceptionDelivery = true causing stale
ObjPtr<> use.

Test: run-test --jit -runtime-option -Xjitthreshold:0 \
      1934-jvmti-signal-thread
Test: Repeat with kDebugExceptionDelivery = true.
Bug: 74583459
Change-Id: Ia2e777cc3ccef4eba549aa290f8bc12608eafe44
Merged-In: Ia2e777cc3ccef4eba549aa290f8bc12608eafe44
(cherry picked from commit fac21782ed87ce800813cfa0f9b4ee4bb4aac462)
2 files changed