diff options
| author | Li Li <dualli@google.com> | 2021-09-21 15:05:08 -0700 |
|---|---|---|
| committer | Li Li <dualli@google.com> | 2021-09-30 22:11:21 -0700 |
| commit | 00b3cd73791f212e31362f600c6d3f14c5473235 (patch) | |
| tree | 14a93ebc5450b5f0107b88493ec28ad20a5ec3de /core/java/android/inputmethodservice/AbstractInputMethodService.java | |
| parent | 022dbeda20764383554f875631f289ce76b43804 (diff) | |
Freezer: don't skip processes with file locks
To prevent deadlock, freezer had to skip all processes holding any file
locks. As SQLite is using exclusive locks, a lot of applications won't
be frozen. The new logic will detect the lock dependencies and only
unfreeze the processes that block others.
This patch also adds a rewind() function to ProcFileReader class so that
ProcLocksReader doesn't open/close procfs nodes and create new instance
each time /proc/locks is parsed.
Bug: 176927978
Test: atest ProcFileReaderTest
Test: atest ProcLocksReaderTest
Test: verified processes with file locks could be frozen
Test: verified processes with blocking file locks were unfrozen
Change-Id: Ic2c89e6dcc9ee186840731c911be2aa3247b1352
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions
