Elliott Hughes | 2faa5f1 | 2012-01-30 14:42:07 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2011 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 16 | |
Brian Carlstrom | fc0e321 | 2013-07-17 14:40:12 -0700 | [diff] [blame] | 17 | #ifndef ART_RUNTIME_INTERN_TABLE_H_ |
| 18 | #define ART_RUNTIME_INTERN_TABLE_H_ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 19 | |
Mathieu Chartier | cdfd39f | 2014-08-29 18:16:58 -0700 | [diff] [blame] | 20 | #include <unordered_set> |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 21 | |
Mathieu Chartier | bad0267 | 2014-08-25 13:08:22 -0700 | [diff] [blame] | 22 | #include "base/allocator.h" |
Mathieu Chartier | c2e2062 | 2014-11-03 11:41:47 -0800 | [diff] [blame] | 23 | #include "base/hash_set.h" |
Ian Rogers | 719d1a3 | 2014-03-06 12:13:39 -0800 | [diff] [blame] | 24 | #include "base/mutex.h" |
Hiroshi Yamauchi | 94f7b49 | 2014-07-22 18:08:23 -0700 | [diff] [blame] | 25 | #include "gc_root.h" |
Ian Rogers | 719d1a3 | 2014-03-06 12:13:39 -0800 | [diff] [blame] | 26 | #include "object_callbacks.h" |
| 27 | |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 28 | namespace art { |
Mathieu Chartier | 893263b | 2014-03-04 11:07:42 -0800 | [diff] [blame] | 29 | |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 30 | namespace gc { |
| 31 | namespace space { |
| 32 | class ImageSpace; |
| 33 | } // namespace space |
| 34 | } // namespace gc |
| 35 | |
Mathieu Chartier | 893263b | 2014-03-04 11:07:42 -0800 | [diff] [blame] | 36 | enum VisitRootFlags : uint8_t; |
| 37 | |
Ian Rogers | 2dd0e2c | 2013-01-24 12:42:14 -0800 | [diff] [blame] | 38 | namespace mirror { |
| 39 | class String; |
| 40 | } // namespace mirror |
Sebastien Hertz | d2fe10a | 2014-01-15 10:20:56 +0100 | [diff] [blame] | 41 | class Transaction; |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 42 | |
Elliott Hughes | cf4c6c4 | 2011-09-01 15:16:42 -0700 | [diff] [blame] | 43 | /** |
| 44 | * Used to intern strings. |
| 45 | * |
| 46 | * There are actually two tables: one that holds strong references to its strings, and one that |
| 47 | * holds weak references. The former is used for string literals, for which there is an effective |
| 48 | * reference from the constant pool. The latter is used for strings interned at runtime via |
| 49 | * String.intern. Some code (XML parsers being a prime example) relies on being able to intern |
| 50 | * arbitrarily many strings for the duration of a parse without permanently increasing the memory |
| 51 | * footprint. |
| 52 | */ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 53 | class InternTable { |
| 54 | public: |
| 55 | InternTable(); |
Brian Carlstrom | a663ea5 | 2011-08-19 23:33:41 -0700 | [diff] [blame] | 56 | |
Elliott Hughes | cf4c6c4 | 2011-09-01 15:16:42 -0700 | [diff] [blame] | 57 | // Interns a potentially new string in the 'strong' table. (See above.) |
Ian Rogers | 2dd0e2c | 2013-01-24 12:42:14 -0800 | [diff] [blame] | 58 | mirror::String* InternStrong(int32_t utf16_length, const char* utf8_data) |
Ian Rogers | b726dcb | 2012-09-05 08:57:23 -0700 | [diff] [blame] | 59 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
Brian Carlstrom | c74255f | 2011-09-11 22:47:39 -0700 | [diff] [blame] | 60 | |
| 61 | // Interns a potentially new string in the 'strong' table. (See above.) |
Ian Rogers | 2dd0e2c | 2013-01-24 12:42:14 -0800 | [diff] [blame] | 62 | mirror::String* InternStrong(const char* utf8_data) |
Ian Rogers | b726dcb | 2012-09-05 08:57:23 -0700 | [diff] [blame] | 63 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
Brian Carlstrom | c74255f | 2011-09-11 22:47:39 -0700 | [diff] [blame] | 64 | |
| 65 | // Interns a potentially new string in the 'strong' table. (See above.) |
Ian Rogers | 2dd0e2c | 2013-01-24 12:42:14 -0800 | [diff] [blame] | 66 | mirror::String* InternStrong(mirror::String* s) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
Brian Carlstrom | a663ea5 | 2011-08-19 23:33:41 -0700 | [diff] [blame] | 67 | |
Elliott Hughes | cf4c6c4 | 2011-09-01 15:16:42 -0700 | [diff] [blame] | 68 | // Interns a potentially new string in the 'weak' table. (See above.) |
Ian Rogers | 2dd0e2c | 2013-01-24 12:42:14 -0800 | [diff] [blame] | 69 | mirror::String* InternWeak(mirror::String* s) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
Elliott Hughes | cf4c6c4 | 2011-09-01 15:16:42 -0700 | [diff] [blame] | 70 | |
Hiroshi Yamauchi | 94f7b49 | 2014-07-22 18:08:23 -0700 | [diff] [blame] | 71 | void SweepInternTableWeaks(IsMarkedCallback* callback, void* arg) |
| 72 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
Elliott Hughes | cf4c6c4 | 2011-09-01 15:16:42 -0700 | [diff] [blame] | 73 | |
Ian Rogers | 2dd0e2c | 2013-01-24 12:42:14 -0800 | [diff] [blame] | 74 | bool ContainsWeak(mirror::String* s) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
Brian Carlstrom | a663ea5 | 2011-08-19 23:33:41 -0700 | [diff] [blame] | 75 | |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 76 | // Total number of interned strings. |
| 77 | size_t Size() const LOCKS_EXCLUDED(Locks::intern_table_lock_); |
| 78 | // Total number of weakly live interned strings. |
| 79 | size_t StrongSize() const LOCKS_EXCLUDED(Locks::intern_table_lock_); |
| 80 | // Total number of strongly live interned strings. |
| 81 | size_t WeakSize() const LOCKS_EXCLUDED(Locks::intern_table_lock_); |
Elliott Hughes | cf4c6c4 | 2011-09-01 15:16:42 -0700 | [diff] [blame] | 82 | |
Mathieu Chartier | bb87e0f | 2015-04-03 11:21:55 -0700 | [diff] [blame^] | 83 | void VisitRoots(RootVisitor* visitor, VisitRootFlags flags) |
Hiroshi Yamauchi | 94f7b49 | 2014-07-22 18:08:23 -0700 | [diff] [blame] | 84 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 85 | |
Elliott Hughes | cac6cc7 | 2011-11-03 20:31:21 -0700 | [diff] [blame] | 86 | void DumpForSigQuit(std::ostream& os) const; |
| 87 | |
Hiroshi Yamauchi | 2cd334a | 2015-01-09 14:03:35 -0800 | [diff] [blame] | 88 | void DisallowNewInterns() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
Mathieu Chartier | c11d9b8 | 2013-09-19 10:01:59 -0700 | [diff] [blame] | 89 | void AllowNewInterns() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
Hiroshi Yamauchi | 2cd334a | 2015-01-09 14:03:35 -0800 | [diff] [blame] | 90 | void EnsureNewInternsDisallowed() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
Mathieu Chartier | c11d9b8 | 2013-09-19 10:01:59 -0700 | [diff] [blame] | 91 | |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 92 | // Adds all of the resolved image strings from the image space into the intern table. The |
| 93 | // advantage of doing this is preventing expensive DexFile::FindStringId calls. |
| 94 | void AddImageStringsToTable(gc::space::ImageSpace* image_space) |
| 95 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) LOCKS_EXCLUDED(Locks::intern_table_lock_); |
| 96 | // Copy the post zygote tables to pre zygote to save memory by preventing dirty pages. |
| 97 | void SwapPostZygoteWithPreZygote() |
| 98 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) LOCKS_EXCLUDED(Locks::intern_table_lock_); |
| 99 | |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 100 | private: |
Mathieu Chartier | cdfd39f | 2014-08-29 18:16:58 -0700 | [diff] [blame] | 101 | class StringHashEquals { |
| 102 | public: |
Mathieu Chartier | c2e2062 | 2014-11-03 11:41:47 -0800 | [diff] [blame] | 103 | std::size_t operator()(const GcRoot<mirror::String>& root) const NO_THREAD_SAFETY_ANALYSIS; |
| 104 | bool operator()(const GcRoot<mirror::String>& a, const GcRoot<mirror::String>& b) const |
Mathieu Chartier | cdfd39f | 2014-08-29 18:16:58 -0700 | [diff] [blame] | 105 | NO_THREAD_SAFETY_ANALYSIS; |
| 106 | }; |
Mathieu Chartier | c2e2062 | 2014-11-03 11:41:47 -0800 | [diff] [blame] | 107 | class GcRootEmptyFn { |
| 108 | public: |
| 109 | void MakeEmpty(GcRoot<mirror::String>& item) const { |
| 110 | item = GcRoot<mirror::String>(); |
| 111 | } |
| 112 | bool IsEmpty(const GcRoot<mirror::String>& item) const { |
| 113 | return item.IsNull(); |
| 114 | } |
| 115 | }; |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 116 | |
| 117 | // Table which holds pre zygote and post zygote interned strings. There is one instance for |
| 118 | // weak interns and strong interns. |
| 119 | class Table { |
| 120 | public: |
| 121 | mirror::String* Find(mirror::String* s) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
| 122 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
| 123 | void Insert(mirror::String* s) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
| 124 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
| 125 | void Remove(mirror::String* s) |
| 126 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
| 127 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
Mathieu Chartier | bb87e0f | 2015-04-03 11:21:55 -0700 | [diff] [blame^] | 128 | void VisitRoots(RootVisitor* visitor) |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 129 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
| 130 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
| 131 | void SweepWeaks(IsMarkedCallback* callback, void* arg) |
| 132 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
| 133 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
| 134 | void SwapPostZygoteWithPreZygote() EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
Mathieu Chartier | c2e2062 | 2014-11-03 11:41:47 -0800 | [diff] [blame] | 135 | size_t Size() const EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 136 | |
| 137 | private: |
Mathieu Chartier | c2e2062 | 2014-11-03 11:41:47 -0800 | [diff] [blame] | 138 | typedef HashSet<GcRoot<mirror::String>, GcRootEmptyFn, StringHashEquals, StringHashEquals, |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 139 | TrackingAllocator<GcRoot<mirror::String>, kAllocatorTagInternTable>> UnorderedSet; |
| 140 | |
| 141 | void SweepWeaks(UnorderedSet* set, IsMarkedCallback* callback, void* arg) |
| 142 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
| 143 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
| 144 | |
| 145 | // We call SwapPostZygoteWithPreZygote when we create the zygote to reduce private dirty pages |
| 146 | // caused by modifying the zygote intern table hash table. The pre zygote table are the |
| 147 | // interned strings which were interned before we created the zygote space. Post zygote is self |
| 148 | // explanatory. |
| 149 | UnorderedSet pre_zygote_table_; |
| 150 | UnorderedSet post_zygote_table_; |
| 151 | }; |
Elliott Hughes | cf4c6c4 | 2011-09-01 15:16:42 -0700 | [diff] [blame] | 152 | |
Mathieu Chartier | c2e2062 | 2014-11-03 11:41:47 -0800 | [diff] [blame] | 153 | // Insert if non null, otherwise return nullptr. |
Ian Rogers | 2dd0e2c | 2013-01-24 12:42:14 -0800 | [diff] [blame] | 154 | mirror::String* Insert(mirror::String* s, bool is_strong) |
Sebastien Hertz | d2fe10a | 2014-01-15 10:20:56 +0100 | [diff] [blame] | 155 | LOCKS_EXCLUDED(Locks::intern_table_lock_) |
Ian Rogers | b726dcb | 2012-09-05 08:57:23 -0700 | [diff] [blame] | 156 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
Elliott Hughes | cf4c6c4 | 2011-09-01 15:16:42 -0700 | [diff] [blame] | 157 | |
Mathieu Chartier | cdfd39f | 2014-08-29 18:16:58 -0700 | [diff] [blame] | 158 | mirror::String* LookupStrong(mirror::String* s) |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 159 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
| 160 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
Mathieu Chartier | cdfd39f | 2014-08-29 18:16:58 -0700 | [diff] [blame] | 161 | mirror::String* LookupWeak(mirror::String* s) |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 162 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
| 163 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
Mathieu Chartier | cdfd39f | 2014-08-29 18:16:58 -0700 | [diff] [blame] | 164 | mirror::String* InsertStrong(mirror::String* s) |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 165 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
Sebastien Hertz | d2fe10a | 2014-01-15 10:20:56 +0100 | [diff] [blame] | 166 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
Mathieu Chartier | cdfd39f | 2014-08-29 18:16:58 -0700 | [diff] [blame] | 167 | mirror::String* InsertWeak(mirror::String* s) |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 168 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
Sebastien Hertz | d2fe10a | 2014-01-15 10:20:56 +0100 | [diff] [blame] | 169 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
Mathieu Chartier | cdfd39f | 2014-08-29 18:16:58 -0700 | [diff] [blame] | 170 | void RemoveStrong(mirror::String* s) |
Hiroshi Yamauchi | 1bd4872 | 2014-05-23 19:58:15 -0700 | [diff] [blame] | 171 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
Sebastien Hertz | d2fe10a | 2014-01-15 10:20:56 +0100 | [diff] [blame] | 172 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
Mathieu Chartier | cdfd39f | 2014-08-29 18:16:58 -0700 | [diff] [blame] | 173 | void RemoveWeak(mirror::String* s) |
Hiroshi Yamauchi | 1bd4872 | 2014-05-23 19:58:15 -0700 | [diff] [blame] | 174 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
| 175 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
Elliott Hughes | cf4c6c4 | 2011-09-01 15:16:42 -0700 | [diff] [blame] | 176 | |
Sebastien Hertz | d2fe10a | 2014-01-15 10:20:56 +0100 | [diff] [blame] | 177 | // Transaction rollback access. |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 178 | mirror::String* LookupStringFromImage(mirror::String* s) |
| 179 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
| 180 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
Mathieu Chartier | cdfd39f | 2014-08-29 18:16:58 -0700 | [diff] [blame] | 181 | mirror::String* InsertStrongFromTransaction(mirror::String* s) |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 182 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
Sebastien Hertz | d2fe10a | 2014-01-15 10:20:56 +0100 | [diff] [blame] | 183 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
Mathieu Chartier | cdfd39f | 2014-08-29 18:16:58 -0700 | [diff] [blame] | 184 | mirror::String* InsertWeakFromTransaction(mirror::String* s) |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 185 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
Sebastien Hertz | d2fe10a | 2014-01-15 10:20:56 +0100 | [diff] [blame] | 186 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
Mathieu Chartier | cdfd39f | 2014-08-29 18:16:58 -0700 | [diff] [blame] | 187 | void RemoveStrongFromTransaction(mirror::String* s) |
Hiroshi Yamauchi | 1bd4872 | 2014-05-23 19:58:15 -0700 | [diff] [blame] | 188 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
Sebastien Hertz | d2fe10a | 2014-01-15 10:20:56 +0100 | [diff] [blame] | 189 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
Mathieu Chartier | cdfd39f | 2014-08-29 18:16:58 -0700 | [diff] [blame] | 190 | void RemoveWeakFromTransaction(mirror::String* s) |
Hiroshi Yamauchi | 1bd4872 | 2014-05-23 19:58:15 -0700 | [diff] [blame] | 191 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
Sebastien Hertz | d2fe10a | 2014-01-15 10:20:56 +0100 | [diff] [blame] | 192 | EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_); |
| 193 | friend class Transaction; |
| 194 | |
Mathieu Chartier | eb175f7 | 2014-10-31 11:49:27 -0700 | [diff] [blame] | 195 | bool image_added_to_intern_table_ GUARDED_BY(Locks::intern_table_lock_); |
Mathieu Chartier | 893263b | 2014-03-04 11:07:42 -0800 | [diff] [blame] | 196 | bool log_new_roots_ GUARDED_BY(Locks::intern_table_lock_); |
Sebastien Hertz | d2fe10a | 2014-01-15 10:20:56 +0100 | [diff] [blame] | 197 | bool allow_new_interns_ GUARDED_BY(Locks::intern_table_lock_); |
| 198 | ConditionVariable new_intern_condition_ GUARDED_BY(Locks::intern_table_lock_); |
Hiroshi Yamauchi | a91a4bc | 2014-06-13 16:44:55 -0700 | [diff] [blame] | 199 | // Since this contains (strong) roots, they need a read barrier to |
| 200 | // enable concurrent intern table (strong) root scan. Do not |
| 201 | // directly access the strings in it. Use functions that contain |
| 202 | // read barriers. |
Sebastien Hertz | d2fe10a | 2014-01-15 10:20:56 +0100 | [diff] [blame] | 203 | Table strong_interns_ GUARDED_BY(Locks::intern_table_lock_); |
Mathieu Chartier | cdfd39f | 2014-08-29 18:16:58 -0700 | [diff] [blame] | 204 | std::vector<GcRoot<mirror::String>> new_strong_intern_roots_ |
Mathieu Chartier | 893263b | 2014-03-04 11:07:42 -0800 | [diff] [blame] | 205 | GUARDED_BY(Locks::intern_table_lock_); |
Hiroshi Yamauchi | a91a4bc | 2014-06-13 16:44:55 -0700 | [diff] [blame] | 206 | // Since this contains (weak) roots, they need a read barrier. Do |
| 207 | // not directly access the strings in it. Use functions that contain |
| 208 | // read barriers. |
Sebastien Hertz | d2fe10a | 2014-01-15 10:20:56 +0100 | [diff] [blame] | 209 | Table weak_interns_ GUARDED_BY(Locks::intern_table_lock_); |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 210 | }; |
| 211 | |
| 212 | } // namespace art |
| 213 | |
Brian Carlstrom | fc0e321 | 2013-07-17 14:40:12 -0700 | [diff] [blame] | 214 | #endif // ART_RUNTIME_INTERN_TABLE_H_ |