Special case dex files that have hidden API data.
Revert of 5462920633c948669dc6e28c61ef92cfeb0cce2b.
Dexlayout can increase the size of a dex file, so overestimate the
size needed when we know we're going to run dexlayout on it.
Bug: 123474797
Test: CtsJvmtiRunTest983HostTestCases
Test: art/test/run-test --always-clean --host --prebuild --compact-dex-level fast --optimizing --no-relocate --runtime-option -Xcheck:jni --debuggable --jvmti-redefine-stress --64 980-redefine-object
Change-Id: Iea3d38a7f3a55d9a694b95687fb333f680f8106b
diff --git a/openjdkjvmti/fixed_up_dex_file.h b/openjdkjvmti/fixed_up_dex_file.h
index e09d70b..594e8a7 100644
--- a/openjdkjvmti/fixed_up_dex_file.h
+++ b/openjdkjvmti/fixed_up_dex_file.h
@@ -49,8 +49,7 @@
// are running on.
class FixedUpDexFile {
public:
- static std::unique_ptr<FixedUpDexFile> Create(jobject class_loader,
- const art::DexFile& original,
+ static std::unique_ptr<FixedUpDexFile> Create(const art::DexFile& original,
const char* descriptor);
const art::DexFile& GetDexFile() {