Skip to content

Commit 917e268

Browse files
committed
Remove assertions that can fail with -Ddd.profiling.start-force-first=false
1 parent ae83ee4 commit 917e268

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ Java_com_datadoghq_profiler_JavaProfiler_filterThreadAdd0(JNIEnv *env,
131131
jobject unused) {
132132
ProfiledThread *current = ProfiledThread::current();
133133
if (unlikely(current == nullptr)) {
134-
assert(false);
135134
return;
136135
}
137136
int tid = current->tid();
@@ -162,7 +161,6 @@ Java_com_datadoghq_profiler_JavaProfiler_filterThreadRemove0(JNIEnv *env,
162161
jobject unused) {
163162
ProfiledThread *current = ProfiledThread::current();
164163
if (unlikely(current == nullptr)) {
165-
assert(false);
166164
return;
167165
}
168166
int tid = current->tid();
@@ -189,7 +187,6 @@ Java_com_datadoghq_profiler_JavaProfiler_filterThread0(JNIEnv *env,
189187
jboolean enable) {
190188
ProfiledThread *current = ProfiledThread::current();
191189
if (unlikely(current == nullptr)) {
192-
assert(false);
193190
return;
194191
}
195192
int tid = current->tid();

0 commit comments

Comments
 (0)