Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libcore|NativeFile: Improving file handle management
Keep a fixed limit on the number of simultaneously open files. Due to the design of the libcore file system, we don't know when a user has finished reading a file, so we'll keep track of recently accessed files and forcibly close old native handles when too many have accumulated.
- Loading branch information
Showing
1 changed file
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters