diff options
author | Sudheer Shanka <sudheersai@google.com> | 2020-06-04 23:33:13 -0700 |
---|---|---|
committer | Sudheer Shanka <sudheersai@google.com> | 2020-06-04 23:58:30 -0700 |
commit | 300d9cb1a827eb72ed61d7db438ae59c57e5ecc0 (patch) | |
tree | 40042ecf28b0b7b8a245baeb76fa4eddc08d902f /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | edcb2c38f4a06fbc4fe786e3a5f441d0ef69b55c (diff) |
Move RevocableFileDescriptor creation outside the locked section.
If creating the RevocableFileDescriptor while holding the lock gets
stuck, it could crash the system. So, take it out of of the locked
section. Also, close the underlying fd if RevocableFileDescriptor
creation fails.
Bug: 157535024
Test: atest --test-mapping apex/blobstore
Change-Id: I9948307f7e5cdaa1ac886531cf6e67f5a7dd0547
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions