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

Method JavaObjectAlloc

src/j9ObjectSampler.cpp:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11void J9ObjectSampler::JavaObjectAlloc(jvmtiEnv* jvmti, JNIEnv* jni, jthread thread,
12 jobject object, jclass object_klass, jlong size) {
13 if (_enabled && updateCounter(_allocated_bytes, size, _interval)) {
14 recordAllocation(jvmti, jni, ALLOC_SAMPLE, object, object_klass, size);
15 }
16}
17
18void J9ObjectSampler::VMObjectAlloc(jvmtiEnv* jvmti, JNIEnv* jni, jthread thread,
19 jobject object, jclass object_klass, jlong size) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected