Reland^2 "Update instrumentation support for non-java debuggable runtimes"
This reverts commit 778800e334a3fd0f29dbeabad114032bc849a9d1.
Reason for revert: Reland after fixes. Fixes:
1. Update Trace::Start and Trace::Stop to turn on
JavaDebuggable, so that necessary support exists for method tracing.
Earlier we used to just use interpreter in non-debuggable runtimes. Now
we are adding the ability to switch the runtime to debuggable when
required. Earlier CL missed updating tracing.
2. Allow installing JITed code with instrumentation support when
instrumentation support is required. We disallowed any JITed code for
native methods if instrumentation support is needed.
3. Allow loading app images in debuggable runtimes, since we may want
to use the AOT code after turning off debuggable.
4. Mark a few tests related to cha (616-cha*) and a test related
to dead references (1339-dead-reference-safe) as expected to
fail in trace configuration since certain optimizations are
disabled in debuggable runtimes.
5. Also temporarily mark 667-jit-jni-stub as expected failure
since Jit GC is turned off with tracing.
Change-Id: I853113781f1a8c367b01529b8f7337cd2604d4a3
Bug: 206029744
37 files changed