Ensure new DexItemFactory for each file in extractmarker
Change-Id: I7da16bb8f3e5bb36c6698b8cefb832cfa4e4ccec
diff --git a/src/main/java/com/android/tools/r8/ExtractMarker.java b/src/main/java/com/android/tools/r8/ExtractMarker.java
index e3d399d..a32aa20 100644
--- a/src/main/java/com/android/tools/r8/ExtractMarker.java
+++ b/src/main/java/com/android/tools/r8/ExtractMarker.java
@@ -146,7 +146,6 @@
return;
}
- InternalOptions options = new InternalOptions();
// Dex code is not needed for getting the marker. VDex files typically contains quickened byte
// codes which cannot be read, and we want to get the marker from vdex files as well.
int d8Count = 0;
@@ -154,6 +153,7 @@
int otherCount = 0;
for (Path programFile : command.getProgramFiles()) {
try {
+ InternalOptions options = new InternalOptions();
options.skipReadingDexCode = true;
options.minApiLevel = AndroidApiLevel.P.getLevel();
AndroidApp.Builder appBuilder = AndroidApp.builder();