diff options
author | David Sehr <sehr@google.com> | 2018-07-03 23:03:42 +0000 |
---|---|---|
committer | David Sehr <sehr@google.com> | 2018-07-03 23:03:56 +0000 |
commit | 0b4267720380ca746abb9090364cea9ee6cb1435 (patch) | |
tree | 3e330d7241d5608858b9084a246a4bb8b88b070f /compiler/optimizing/optimizing_unit_test.h | |
parent | 7583d915800ad330da0232dfdb0a4d1bda2d074c (diff) |
Revert "Refactor DexFile ownership"
This reverts commit b095f022a9683a9123018c01e22595cf969fd88b.
Reason for revert: Caused huge interpreter performance regression.
Change-Id: I0f27f8f234d315807695362bf679ef47f68723f7
Diffstat (limited to 'compiler/optimizing/optimizing_unit_test.h')
-rw-r--r-- | compiler/optimizing/optimizing_unit_test.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/optimizing/optimizing_unit_test.h b/compiler/optimizing/optimizing_unit_test.h index e44d7b82e5..f903f82d50 100644 --- a/compiler/optimizing/optimizing_unit_test.h +++ b/compiler/optimizing/optimizing_unit_test.h @@ -130,10 +130,12 @@ class OptimizingUnitTestHelper { // Create the dex file based on the fake data. Call the constructor so that we can use virtual // functions. Don't use the arena for the StandardDexFile otherwise the dex location leaks. dex_files_.emplace_back(new StandardDexFile( - std::make_unique<NonOwningDexFileContainer>(dex_data, sizeof(StandardDexFile::Header)), + dex_data, + sizeof(StandardDexFile::Header), "no_location", /*location_checksum*/ 0, - /*oat_dex_file*/ nullptr)); + /*oat_dex_file*/ nullptr, + /*container*/ nullptr)); return new (allocator) HGraph( allocator, |