MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / grow

Method grow

src/instrument.cpp:247–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245 }
246
247 void grow(int new_capacity) {
248 u8* new_dst = NULL;
249 VM::jvmti()->Allocate(new_capacity, &new_dst);
250 memcpy(new_dst, _dst, _dst_len);
251 VM::jvmti()->Deallocate(_dst);
252
253 _dst = new_dst;
254 _dst_capacity = new_capacity;
255 }
256
257 void put(const u8* src, int bytes) {
258 memcpy(alloc(bytes), src, bytes);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected