Skip to content

Commit 0b128b5

Browse files
committed
jbachorik's comment
1 parent a3d2477 commit 0b128b5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ddprof-lib/src/main/cpp/threadFilter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ void ThreadFilter::clear() {
8686
_size = 0;
8787
}
8888

89+
// The mapping has to be reversible: f(f(x)) == x
8990
int ThreadFilter::mapThreadId(int thread_id) {
9091
// We want to map the thread_id inside the same bitmap
9192
static_assert(BITMAP_SIZE >= (u16)0xffff, "Potential verflow");

0 commit comments

Comments
 (0)