Skip to content

Commit 816e3a9

Browse files
committed
v3
1 parent 7737a94 commit 816e3a9

3 files changed

Lines changed: 0 additions & 18 deletions

File tree

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,3 @@ Java_com_datadoghq_profiler_ActiveBitmap_getActiveCountAddr0(JNIEnv *env,
427427
jclass unused) {
428428
return (jlong)Profiler::instance()->threadFilter()->addressOfSize();
429429
}
430-
431-
extern "C" DLLEXPORT jlong JNICALL
432-
Java_com_datadoghq_profiler_ActiveBitmap_getBitmapValue0(JNIEnv *env,
433-
jclass unused,
434-
jint tid,
435-
jlong v) {
436-
return (jlong)Profiler::instance()->threadFilter()->getBitmapValue((int)tid, (long)v);
437-
}

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,6 @@ u64* ThreadFilter::bitmapAddressFor(int thread_id) {
124124
return wordAddress(b, thread_id);
125125
}
126126

127-
u64 ThreadFilter::getBitmapValue(int thread_id, long v) {
128-
thread_id = mapThreadId(thread_id);
129-
u64 *b = bitmap(thread_id);
130-
if (b == NULL) return 0;
131-
assert((long)word(b, thread_id) == v);
132-
return word(b, thread_id);
133-
}
134-
135-
136127
bool ThreadFilter::accept(int thread_id) {
137128
thread_id = mapThreadId(thread_id);
138129
u64 *b = bitmap(thread_id);

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ class ThreadFilter {
7474
void add(int thread_id);
7575
void remove(int thread_id);
7676
u64* bitmapAddressFor(int thread_id);
77-
u64 getBitmapValue(int thread_id, long v);
7877

7978
void collect(std::vector<int> &v);
8079
};

0 commit comments

Comments
 (0)