[llvm-branch-commits] [NFC][sanitizer] Add Debug utility to print thread history (PR #111948)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Oct 10 21:46:04 PDT 2024
================
@@ -0,0 +1,73 @@
+//===-- sanitizer_thread_history.cpp --------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "sanitizer_thread_history.h"
+
+#include "sanitizer_stackdepot.h"
+namespace __sanitizer {
+
+void PrintThreadHistory(ThreadRegistry ®istry, InternalScopedString &out) {
+ ThreadRegistryLock l(®istry);
+ // Stack traces are largest part of printout and they offten the same for
----------------
graphite-app[bot] wrote:
There's a minor typo in the comment. The word `offten` should be corrected to `often`. This change will improve the readability of the code documentation.
*Spotted by [Graphite Reviewer](https://app.graphite.dev/graphite-reviewer/?org=llvm&ref=ai-review-comment)*<i class='graphite__hidden'><br /><br />Is this helpful? React 👍 or 👎 to let us know.</i>
https://github.com/llvm/llvm-project/pull/111948
More information about the llvm-branch-commits
mailing list