Chromium Code Reviews
Description[Android WebView] Keep a reference to the exclusive data dir lock file.
RandomAccessFile has a CloseGuard which causes a StrictMode violation
during RandomAccessFile.finalize(), i.e. when a RandomAccessFile is
garbage collected. We sometimes hit this StrictMode violation, meaning
that we sometimes close the corresponding file and its file lock
(because the finalizer also closes the actual file).
Instead of throwing away the reference to the data dir lock file, store
it until process termination to ensure we never unlock the file lock
(and to ensure we don't hit the StrictMode violation).
BUG=647291
Committed: https://crrev.com/7c1c15a67b2a3523ff4380cd7845a96331438326
Cr-Commit-Position: refs/heads/master@{#428994}
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|
|||||||||||||||||||