Skip to content

Commit 279a616

Browse files
committed
Merge pull request #32 from nitsanw/check-null-inline-info
Check if compile_info is NULL before trying to unfold
2 parents d8bb586 + a3b18ec commit 279a616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/c/perf-map-agent.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ cbCompiledMethodLoad(
214214
jint map_length,
215215
const jvmtiAddrLocationMap* map,
216216
const void* compile_info) {
217-
if (unfold_inlined_methods)
217+
if (unfold_inlined_methods && compile_info != NULL)
218218
generate_unfolded_entries(jvmti, method, code_size, code_addr, map_length, map, compile_info);
219219
else
220220
generate_single_entry(jvmti, method, code_addr, code_size);

0 commit comments

Comments
 (0)