ART: Remove unnecessary file from vdex
Don't store the file. The mem-map works without it.
Test: m
Test: m test-art-host
Test: device boots
Bug: 30937355
Bug: 31439377
Change-Id: Ie9579062c20ddd8dcfc612ccb614f0a0553d4fd9
diff --git a/runtime/vdex_file.cc b/runtime/vdex_file.cc
index 12bc451..a71578b 100644
--- a/runtime/vdex_file.cc
+++ b/runtime/vdex_file.cc
@@ -19,6 +19,7 @@
#include <memory>
#include "base/logging.h"
+#include "base/unix_file/fd_file.h"
namespace art {
@@ -81,7 +82,7 @@
}
*error_msg = "Success";
- return new VdexFile(vdex_file.release(), mmap.release());
+ return new VdexFile(mmap.release());
}
} // namespace art