| 65 | } |
| 66 | |
| 67 | void CodeCache::expand() { |
| 68 | CodeBlob* old_blobs = _blobs; |
| 69 | CodeBlob* new_blobs = new CodeBlob[_capacity * 2]; |
| 70 | |
| 71 | memcpy(new_blobs, old_blobs, _count * sizeof(CodeBlob)); |
| 72 | |
| 73 | _capacity *= 2; |
| 74 | _blobs = new_blobs; |
| 75 | delete[] old_blobs; |
| 76 | } |
| 77 | |
| 78 | void CodeCache::add(const void* start, int length, const char* name, bool update_bounds) { |
| 79 | char* name_copy = NativeFunc::create(name, _lib_index); |
nothing calls this directly
no outgoing calls
no test coverage detected