Lines Matching refs:CodeBlob
92 void add(CodeBlob* cb) {
124 CodeBlob* CodeCache::first() {
126 return (CodeBlob*)_heap->first();
130 CodeBlob* CodeCache::next(CodeBlob* cb) {
132 return (CodeBlob*)_heap->next(cb);
136 CodeBlob* CodeCache::alive(CodeBlob *cb) {
143 nmethod* CodeCache::alive_nmethod(CodeBlob* cb) {
151 CodeBlob* cb = first();
158 nmethod* CodeCache::next_nmethod (CodeBlob* cb) {
167 CodeBlob* CodeCache::allocate(int size) {
170 // cache will contain a garbage CodeBlob until the caller can
171 // run the constructor for the CodeBlob subclass he is busy
175 CodeBlob* cb = NULL;
178 cb = (CodeBlob*)_heap->allocate(size);
196 void CodeCache::free(CodeBlob* cb) {
219 void CodeCache::commit(CodeBlob* cb) {
245 #define FOR_ALL_BLOBS(var) for (CodeBlob *var = first() ; var != NULL; var = next(var) )
246 #define FOR_ALL_ALIVE_BLOBS(var) for (CodeBlob *var = alive(first()); var != NULL; var = alive(next(var)))
258 // valid indices, which it will always do, as long as the CodeBlob is not in the process of being recycled.
259 CodeBlob* CodeCache::find_blob(void* start) {
260 CodeBlob* result = find_blob_unsafe(start);
268 CodeBlob *cb = find_blob(start);
274 void CodeCache::blobs_do(void f(CodeBlob* nm)) {
806 void CodeCache::print_trace(const char* event, CodeBlob* cb, int size) {
831 CodeBlob *cb;