Skip to content

Commit

Permalink
Init shadow stack.
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-spas authored and chumer committed Sep 10, 2018
1 parent 80bb9c6 commit dbcd6ba
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ Map<Thread, StackTraceElement[]> takeSample() {
return null;
}
if (shadowStack == null && stacksBinding == null) {
this.shadowStack = new ShadowStack(stackLimit, DEFAULT_FILTER, env.getInstrumenter(), TruffleLogger.getLogger(CPUSamplerInstrument.ID));
this.stacksBinding = this.shadowStack.install(env.getInstrumenter(), combine(DEFAULT_FILTER, mode), mode == Mode.EXCLUDE_INLINED_ROOTS);
}
return getAllStackTraces();
Expand Down

0 comments on commit dbcd6ba

Please sign in to comment.