diff options
author | Narayan Kamath <narayan@google.com> | 2017-07-31 15:58:59 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2017-08-07 16:00:04 +0100 |
commit | a0a280846d175e8e08e08ed8c4389bac9a5f25d4 (patch) | |
tree | 48a932375d5220d01da8809413bd6a51d94e7fab /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | c5622b88bd1858167795c0fc8a999ead5c201771 (diff) |
system_server : trigger runtime restart when we're close to the soft FD limit.
We arbitrarily define a high water mark as 12 below the max limit (1024)
and dump the list of open descriptors and restart the system_server when we
reach that mark.
The list of file descriptors is dumped to a file with prefix /data/anr/anr_fd_xxxxx.
This might be construed as a hack, but it allows us to take advantage of
existing code in dumpstate that will capture this file and add it to any
bugreport that's collected after.
Test: Manual
Bug: 63004717
Change-Id: I4052625574a3ab2df9ddf591f281a412e7b4b511
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions