Skip to content

Commit

Permalink
Merge pull request #32 from nitsanw/check-null-inline-info
Browse files Browse the repository at this point in the history
Check if compile_info is NULL before trying to unfold
  • Loading branch information
jrudolph committed Apr 20, 2016
2 parents d8bb586 + a3b18ec commit 279a616
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 279a616

Please sign in to comment.