Revert "Revert "Ensure that OSR still is possible with jvmti""

Reason for revert: Fixed issue causing test 1935 to be flaky

This reverts commit 4f3d1cfbee45a27d5997c379f4eb7b7108224ca8.
This unreverts commit b9ad26d1ed9146b89555d4333021f44eeb831f05

Test: ./test.py --host -j50 --all -t 993
Test: ./test.py --host
Test: while ./test/run-test --host --jit 1935; do; done
Test: am start --attach-agent -n com.example.android.displayingbitmaps/.ui.ImageGridActivity
      Run blur filter.

Bug: 76226464
Change-Id: Iccdd2d6b788db83786690d697e955c15bcd76c73
6 files changed