summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorbuzbee <buzbee@google.com>2017-02-01 09:08:31 -0800
committerbuzbee <buzbee@google.com>2017-02-01 09:08:31 -0800
commit42a09cb0c6aee5de92eb4cdf6d34646dcd247840 (patch)
tree32a06b1cdc48cd1eeb4f6f0ba232935c5393f899 /compiler/optimizing/graph_visualizer.cc
parentfbf47ea64a9f797a82030e919fa4f085c9eb5b28 (diff)
ART: Reduce overhead of mterp OSR checking
Once mterp's branch profiling identifies a method hot enough to try on-stack replacement, a request is made to the JIT to compile the method for OSR. Mterp then enters a mode in which it checks for completion of the compilation in order to initiate the OSR. Currently, this completion check happens on every branch. In situations in which the JIT is backlogged and it takes awhile for the compilation to complete, the overhead of doing these checks is noticable. This change moves from a "check on every branch" model to a "check on every Nth branch" model. We start with N=100, which should still yield responsive OSR but dramatically reduce the checking overhead. Bug: 32090348 Test: m test-art-host Test: m test-art-target (Nexus 5x) Change-Id: I97442723397bb242163dc18bd4444977bcd469fa
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions