Index: runtime/vm/os_thread_linux.cc |
diff --git a/runtime/vm/os_thread_linux.cc b/runtime/vm/os_thread_linux.cc |
index 969504270e97e5a773c9bb6fddae4363a139b86c..0f8f9584490d9a870c508a6d4c0a596bdb2691f6 100644 |
--- a/runtime/vm/os_thread_linux.cc |
+++ b/runtime/vm/os_thread_linux.cc |
@@ -189,9 +189,11 @@ ThreadId OSThread::GetCurrentThreadId() { |
} |
+#ifndef PRODUCT |
ThreadId OSThread::GetCurrentThreadTraceId() { |
return syscall(__NR_gettid); |
} |
+#endif // PRODUCT |
ThreadJoinId OSThread::GetCurrentThreadJoinId(OSThread* thread) { |