Skip to content

Commit

Permalink
Check if compile info is NULL before try to unfold
Browse files Browse the repository at this point in the history
  • Loading branch information
nitsanw committed Apr 5, 2016
1 parent d8bb586 commit a3b18ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c/perf-map-agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ cbCompiledMethodLoad(
jint map_length,
const jvmtiAddrLocationMap* map,
const void* compile_info) {
if (unfold_inlined_methods)
if (unfold_inlined_methods && compile_info != NULL)
generate_unfolded_entries(jvmti, method, code_size, code_addr, map_length, map, compile_info);
else
generate_single_entry(jvmti, method, code_addr, code_size);
Expand Down

0 comments on commit a3b18ec

Please sign in to comment.