summaryrefslogtreecommitdiff
path: root/test/961-default-iface-resolution-gen/util-src/generate_java.py
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2023-12-21 11:32:21 +0000
committer Cherrypicker Worker <android-build-cherrypicker-worker@google.com> 2024-03-07 14:04:52 +0000
commitc15d3542ed0c6e059a0fe7a7a9a858e2d547096b (patch)
treecc38c215a93ba2ac7c542d073f04e0800c07382a /test/961-default-iface-resolution-gen/util-src/generate_java.py
parent9af00573ff1b8cecebf7fa507a754186f664ba1a (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 (cherry picked from https://android-review.googlesource.com/q/commit:1f03032d3e54f9dc29dafd303d00cc4fdb88e670) Merged-In: I4d688da7f466ac98c1d4302a390f7aa5aee58830 Change-Id: I4d688da7f466ac98c1d4302a390f7aa5aee58830
Diffstat (limited to 'test/961-default-iface-resolution-gen/util-src/generate_java.py')
0 files changed, 0 insertions, 0 deletions