| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected