summaryrefslogtreecommitdiff
path: root/runtime/native/java_lang_Thread.cc
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2023-12-21 11:32:21 +0000
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-01-05 15:50:17 +0000
commit1f03032d3e54f9dc29dafd303d00cc4fdb88e670 (patch)
tree0ba273424d6608ec453e74f6876bf30af4334cd7 /runtime/native/java_lang_Thread.cc
parent9cc6f281b05455df9fb16e9db691eb5e0f18aab6 (diff)
Throttle the creation of ScheduledExecutorService in Debouncer.
Looks like ScheduledExecutorService creates a thread during initialization, rather than when the actual action is run, so the debouncer ends up creating too many threads. This CL fixes the problem by caching the executor until the actual task is run. Bug: 317234694 Test: atest ArtServiceTests Change-Id: I4d688da7f466ac98c1d4302a390f7aa5aee58830
Diffstat (limited to 'runtime/native/java_lang_Thread.cc')
0 files changed, 0 insertions, 0 deletions