diff options
| author | 2023-09-26 20:48:59 -0600 | |
|---|---|---|
| committer | 2023-09-28 02:54:59 +0000 | |
| commit | 87ab77175be64d4d7c1e224dba21091c5e6e8db1 (patch) | |
| tree | 1f03d3079aaaa70c75962ab5ba1372700454859d /include/ftl/enum.h | |
| parent | a9e60a9642e854df10f3e5d64928cb243f077120 (diff) | |
EGL: Close Multifile Blobcache files after mapping
When loading entries from disk, we don't need to keep the
files open after mapping their contents.
Per mmap documentation:
After the mmap() call has returned, the file descriptor, fd, can
be closed immediately without invalidating the mapping.
https://man7.org/linux/man-pages/man2/mmap.2.html
This will prevent consuming excessive file descriptors, which
are a limited resource.
Added new test that ensures file descriptors do not remain open.
Test: libEGL_test, EGL_test, restricted_trace_perf.py
Bug: b/286809755
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5f8117acd45348704629a8aa7bd2169a5ad6a547)
Merged-In: I6317fdbce340a8e7cbf3020ad41386cf9915dd2d
Change-Id: I6317fdbce340a8e7cbf3020ad41386cf9915dd2d
Diffstat (limited to 'include/ftl/enum.h')
0 files changed, 0 insertions, 0 deletions