equal
deleted
inserted
replaced
83 private: |
83 private: |
84 // CodeHeaps of the cache |
84 // CodeHeaps of the cache |
85 static GrowableArray<CodeHeap*>* _heaps; |
85 static GrowableArray<CodeHeap*>* _heaps; |
86 static GrowableArray<CodeHeap*>* _compiled_heaps; |
86 static GrowableArray<CodeHeap*>* _compiled_heaps; |
87 static GrowableArray<CodeHeap*>* _nmethod_heaps; |
87 static GrowableArray<CodeHeap*>* _nmethod_heaps; |
|
88 static GrowableArray<CodeHeap*>* _allocable_heaps; |
88 |
89 |
89 static address _low_bound; // Lower bound of CodeHeap addresses |
90 static address _low_bound; // Lower bound of CodeHeap addresses |
90 static address _high_bound; // Upper bound of CodeHeap addresses |
91 static address _high_bound; // Upper bound of CodeHeap addresses |
91 static int _number_of_nmethods_with_dependencies; // Total number of nmethods with dependencies |
92 static int _number_of_nmethods_with_dependencies; // Total number of nmethods with dependencies |
92 static bool _needs_cache_clean; // True if inline caches of the nmethods needs to be flushed |
93 static bool _needs_cache_clean; // True if inline caches of the nmethods needs to be flushed |
235 |
236 |
236 static bool code_blob_type_accepts_nmethod(int type) { |
237 static bool code_blob_type_accepts_nmethod(int type) { |
237 return type == CodeBlobType::All || type <= CodeBlobType::MethodProfiled; |
238 return type == CodeBlobType::All || type <= CodeBlobType::MethodProfiled; |
238 } |
239 } |
239 |
240 |
|
241 static bool code_blob_type_accepts_allocable(int type) { |
|
242 return type <= CodeBlobType::All; |
|
243 } |
|
244 |
|
245 |
240 // Returns the CodeBlobType for the given compilation level |
246 // Returns the CodeBlobType for the given compilation level |
241 static int get_code_blob_type(int comp_level) { |
247 static int get_code_blob_type(int comp_level) { |
242 if (comp_level == CompLevel_none || |
248 if (comp_level == CompLevel_none || |
243 comp_level == CompLevel_simple || |
249 comp_level == CompLevel_simple || |
244 comp_level == CompLevel_full_optimization) { |
250 comp_level == CompLevel_full_optimization) { |