diff options
| author | 2022-08-16 06:40:02 +0000 | |
|---|---|---|
| committer | 2022-09-07 07:33:41 +0000 | |
| commit | 322ef183e602f304e3d093c083490dd2e766b254 (patch) | |
| tree | c87bb9ae4b08bedd7ba74def6f0b905c9214bedf /compiler/jit/jit_compiler.cc | |
| parent | 2127c9272399e4cb6c0e020cc66278227b54995a (diff) | |
Reland "Update instrumentation support for non-java debuggable runtimes"
This reverts commit 7cc22bb96e4e05cf63661eed7fd3dda5304bdacc.
Reason for revert: Relanding after a fix for jit-on-first-use failures.
The fix:
1. When shutting down jvmti agent, pause Jit threads and discard all
JITed code.
2. Update the jit compiler options when transitioning the runtime debug
state.
Change-Id: I076098459cc5639f9e87dae620a9297460e729e2
Diffstat (limited to 'compiler/jit/jit_compiler.cc')
| -rw-r--r-- | compiler/jit/jit_compiler.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/jit/jit_compiler.cc b/compiler/jit/jit_compiler.cc index e578d3bf7f..f12a3ad52b 100644 --- a/compiler/jit/jit_compiler.cc +++ b/compiler/jit/jit_compiler.cc @@ -41,6 +41,10 @@ JitCompiler* JitCompiler::Create() { return new JitCompiler(); } +void JitCompiler::SetDebuggableCompilerOption(bool value) { + compiler_options_->SetDebuggable(value); +} + void JitCompiler::ParseCompilerOptions() { // Special case max code units for inlining, whose default is "unset" (implictly // meaning no limit). Do this before parsing the actual passed options. |