Mercurial > hg > truffle
comparison src/share/vm/memory/sharedHeap.hpp @ 14466:d166675568f6
8034761: Remove the do_code_roots parameter from process_strong_roots
Reviewed-by: tschatzl, mgerdin, jmasa
author | stefank |
---|---|
date | Thu, 13 Feb 2014 17:44:39 +0100 |
parents | 63a4eb8bcd23 |
children | 10c424c5a362 |
comparison
equal
deleted
inserted
replaced
14359:f7f0c6a77d6d | 14466:d166675568f6 |
---|---|
236 // "SO_AllCodeCache" applies the closure to all elements of the CodeCache. | 236 // "SO_AllCodeCache" applies the closure to all elements of the CodeCache. |
237 // "SO_ScavengeCodeCache" applies the closure to elements on the scavenge root list in the CodeCache. | 237 // "SO_ScavengeCodeCache" applies the closure to elements on the scavenge root list in the CodeCache. |
238 void process_strong_roots(bool activate_scope, | 238 void process_strong_roots(bool activate_scope, |
239 ScanningOption so, | 239 ScanningOption so, |
240 OopClosure* roots, | 240 OopClosure* roots, |
241 CodeBlobClosure* code_roots, | |
242 KlassClosure* klass_closure); | 241 KlassClosure* klass_closure); |
243 | 242 |
244 // Apply "blk" to all the weak roots of the system. These include | 243 // Apply "root_closure" to all the weak roots of the system. |
245 // JNI weak roots, the code cache, system dictionary, symbol table, | 244 // These include JNI weak roots and string table. |
246 // string table. | 245 void process_weak_roots(OopClosure* root_closure); |
247 void process_weak_roots(OopClosure* root_closure, | |
248 CodeBlobClosure* code_roots); | |
249 | 246 |
250 // The functions below are helper functions that a subclass of | 247 // The functions below are helper functions that a subclass of |
251 // "SharedHeap" can use in the implementation of its virtual | 248 // "SharedHeap" can use in the implementation of its virtual |
252 // functions. | 249 // functions. |
253 | 250 |
273 size_t bytes_before, | 270 size_t bytes_before, |
274 size_t bytes_after, | 271 size_t bytes_after, |
275 size_t capacity); | 272 size_t capacity); |
276 }; | 273 }; |
277 | 274 |
275 inline SharedHeap::ScanningOption operator|(SharedHeap::ScanningOption so0, SharedHeap::ScanningOption so1) { | |
276 return static_cast<SharedHeap::ScanningOption>(static_cast<int>(so0) | static_cast<int>(so1)); | |
277 } | |
278 | |
278 #endif // SHARE_VM_MEMORY_SHAREDHEAP_HPP | 279 #endif // SHARE_VM_MEMORY_SHAREDHEAP_HPP |