summaryrefslogtreecommitdiff
path: root/oatdump/oatdump_app_test.cc
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2023-07-03 17:36:29 +0100
committer David Srbecky <dsrbecky@google.com> 2023-08-02 13:29:44 +0000
commit15cee1fb59fd20d75902596f5099ba31ee1c419d (patch)
treec41fb0dff4047a623e93e06563f88e813c1195b2 /oatdump/oatdump_app_test.cc
parent3e9124b06cb4f0915e1ba00cd37946e3b50b2463 (diff)
Clean up: Pass File* to DexFileLoader instead of fd.
The DexFileLoader used to always close the fd, which led to need to duplicate the fds using DupCloexec, or it was easy to accidentally close the fd while it was still needed. Make the DexFileLoader take File pointer, which moves the lifetime management responsibilities to the caller. The DexFileLoader never closes a file that it didn't open. Test: ./art/test.py -b --host --64 --optimizing Change-Id: Ie428edcae6c9062845c57c53528baee249046d70
Diffstat (limited to 'oatdump/oatdump_app_test.cc')
0 files changed, 0 insertions, 0 deletions