Skip to content

Commit

Permalink
#Centipede Really inline HandleOnePc to avoid issues when sanitized.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 703125512
  • Loading branch information
xinhaoyuan authored and copybara-github committed Dec 5, 2024
1 parent a9e46c7 commit d43f1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion centipede/runner_sancov.cc
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ __attribute__((noinline)) static void HandlePath(uintptr_t normalized_pc) {
// With __sanitizer_cov_trace_pc_guard this is an index of PC in the PC table.
// With __sanitizer_cov_trace_pc this is PC itself, normalized by subtracting
// the DSO's dynamic start address.
static inline void HandleOnePc(PCGuard pc_guard) {
static ENFORCE_INLINE void HandleOnePc(PCGuard pc_guard) {
if (!state.run_time_flags.use_pc_features) return;
state.pc_counter_set.SaturatedIncrement(pc_guard.pc_index);

Expand Down

0 comments on commit d43f1c2

Please sign in to comment.