diff options
author | Alex Light <allight@google.com> | 2018-10-08 10:43:06 -0700 |
---|---|---|
committer | Alex Light <allight@google.com> | 2018-10-08 10:51:12 -0700 |
commit | 59b950f53152c169464ba8c63d44102eeba1e594 (patch) | |
tree | 4d1124b540984f970acaf494f4fd85cc347fbd57 /disassembler/disassembler.cc | |
parent | d8ee1f5a8b36280e56e0c723774d0a5575e3cca0 (diff) |
Prevent jit-compilation from loading classes in jit-on-first-use
Unlike with normal jit, jit-on-first-use (-Xjitthreshold:0) causes the
jit-compilation to be done synchronously on the current thread. Since
this thread is not a runtime thread it will allow the jit to load
classes even on a debuggable runtime. This can cause some tests to
fail. To fix this (and prevent any future issues) we mark threads
running in jit-code for jit-on-first-use as runtime-threads
temporarily.
Test: ./test/run-test --host --jit --runtime-option -Xjitthreshold:0 1953
Change-Id: I06410bc3cbdb28ba51e907b71556481ba405c1d0
Diffstat (limited to 'disassembler/disassembler.cc')
0 files changed, 0 insertions, 0 deletions