summaryrefslogtreecommitdiff
path: root/compiler/optimizing/induction_var_range.cc
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2024-07-10 22:42:31 +0100
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-07-12 14:36:43 +0000
commit2f78b627a593c46cbb73f0c933592fc06b825e6e (patch)
tree90ea777f6e0de4bb8d467ce98fe86d8ab7caa702 /compiler/optimizing/induction_var_range.cc
parentb1e4756d7d433f97005c3cfed740e88026620486 (diff)
Offload `onStartJob` and `onStopJob` calls from the main thread.
The job scheduler calls `onStartJob` and `onStopJob` on system_server's main thread. Our handlers can take long, to synchronize on the lock and to wait for cancellation to be done, causing device freezing. This change is a low-risk change that offloads the calls from the main thread while keeping the execution order as the main thread does. Bug: 350999413 Test: atest ArtServiceTests:com.android.server.art.PreRebootDexoptJobTest --iterations 10 Test: Run Pre-reboot Dexopt and cancel it. Change-Id: I270de362f69a1f89e843e219f76b2e1f8b5bda61
Diffstat (limited to 'compiler/optimizing/induction_var_range.cc')
0 files changed, 0 insertions, 0 deletions