Mercurial > hg > truffle
comparison src/share/vm/oops/methodData.hpp @ 14726:92aa6797d639
Backed out merge changeset: b51e29501f30
Backed out merge revision to its first parent (8f483e200405)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 24 Mar 2014 21:30:43 +0100 |
parents | b51e29501f30 |
children |
comparison
equal
deleted
inserted
replaced
14719:0bdd0d157040 | 14726:92aa6797d639 |
---|---|
187 return _header._struct._bci; | 187 return _header._struct._bci; |
188 } | 188 } |
189 | 189 |
190 void set_header(intptr_t value) { | 190 void set_header(intptr_t value) { |
191 _header._bits = value; | 191 _header._bits = value; |
192 } | |
193 bool atomic_set_header(intptr_t value) { | |
194 if (Atomic::cmpxchg_ptr(value, (volatile intptr_t*)&_header._bits, 0) == 0) { | |
195 return true; | |
196 } | |
197 return false; | |
192 } | 198 } |
193 intptr_t header() { | 199 intptr_t header() { |
194 return _header._bits; | 200 return _header._bits; |
195 } | 201 } |
196 void set_cell_at(int index, intptr_t value) { | 202 void set_cell_at(int index, intptr_t value) { |
2135 int _size; | 2141 int _size; |
2136 | 2142 |
2137 // Cached hint for bci_to_dp and bci_to_data | 2143 // Cached hint for bci_to_dp and bci_to_data |
2138 int _hint_di; | 2144 int _hint_di; |
2139 | 2145 |
2140 Mutex _extra_data_lock; | |
2141 | |
2142 MethodData(methodHandle method, int size, TRAPS); | 2146 MethodData(methodHandle method, int size, TRAPS); |
2143 public: | 2147 public: |
2144 static MethodData* allocate(ClassLoaderData* loader_data, methodHandle method, TRAPS); | 2148 static MethodData* allocate(ClassLoaderData* loader_data, methodHandle method, TRAPS); |
2145 MethodData() : _extra_data_lock(Monitor::leaf, "MDO extra data lock") {}; // For ciMethodData | 2149 MethodData() {}; // For ciMethodData |
2146 | 2150 |
2147 bool is_methodData() const volatile { return true; } | 2151 bool is_methodData() const volatile { return true; } |
2148 void initialize(bool for_reprofile = false); | 2152 void initialize(bool for_reprofile = false); |
2149 | 2153 |
2150 // Whole-method sticky bits and flags | 2154 // Whole-method sticky bits and flags |
2259 } | 2263 } |
2260 | 2264 |
2261 // What is the index of the first data entry? | 2265 // What is the index of the first data entry? |
2262 int first_di() const { return 0; } | 2266 int first_di() const { return 0; } |
2263 | 2267 |
2264 ProfileData* bci_to_extra_data_helper(int bci, Method* m, DataLayout*& dp, bool concurrent); | 2268 ProfileData* bci_to_extra_data_helper(int bci, Method* m, DataLayout*& dp); |
2265 // Find or create an extra ProfileData: | 2269 // Find or create an extra ProfileData: |
2266 ProfileData* bci_to_extra_data(int bci, Method* m, bool create_if_missing); | 2270 ProfileData* bci_to_extra_data(int bci, Method* m, bool create_if_missing); |
2267 | 2271 |
2268 // return the argument info cell | 2272 // return the argument info cell |
2269 ArgInfoData *arg_info(); | 2273 ArgInfoData *arg_info(); |