Skip to content

Commit 2f47657

Browse files
committed
fix sporadic crashes
Addresses #422
1 parent 7e80d61 commit 2f47657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpucounters.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ class PCM_API PCM
870870
PERF_TOPDOWN_RETIRING_POS = PERF_TOPDOWN_SLOTS_POS + 4
871871
};
872872

873-
std::unordered_map<int, int> perfTopDownPos;
873+
std::array<int, (PERF_TOPDOWN_RETIRING_POS + 1)> perfTopDownPos;
874874

875875
enum {
876876
PERF_GROUP_LEADER_COUNTER = PERF_INST_RETIRED_POS,

0 commit comments

Comments
 (0)