diff options
author | 2020-03-25 14:57:17 +0000 | |
---|---|---|
committer | 2020-03-31 13:16:12 +0000 | |
commit | fdd46848364b5fdb7360cb3256bd9482d7ca3c28 (patch) | |
tree | d3e47c9723155f6376e3782cc47658a295c1da1c /test/Extension2/ExtensionClass2.java | |
parent | 4ac8d96c332b014b72c2480aa1c83762e818daef (diff) |
Deduplicate interned image strings.
Also fix a bug in relocation; even for -Xnorelocate we need
to relocate second and later extension if it's not compiled
against all previous boot image components.
Also clean up InternTable includes.
Test: New tests in image_space_test.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: aosp_taimen-userdebug boots.
Bug: 152037801
Change-Id: Ie6ae70721f4ffb48950bd248ffa123dee460bcd7
Diffstat (limited to 'test/Extension2/ExtensionClass2.java')
-rw-r--r-- | test/Extension2/ExtensionClass2.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Extension2/ExtensionClass2.java b/test/Extension2/ExtensionClass2.java new file mode 100644 index 0000000000..437341d74d --- /dev/null +++ b/test/Extension2/ExtensionClass2.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2020 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class ExtensionClass2 { + public static String sharedString = "SharedBootImageExtensionTestString"; + public static String uniqueString1 = "UniqueExtension2String1"; + public static String uniqueString2 = "UniqueExtension2String2"; +} |