8298445: Add LeakSanitizer support in HotSpot

Reviewed-by: erikj, ihse
This commit is contained in:
Justin King 2023-02-07 17:41:25 +00:00 committed by Magnus Ihse Bursie
parent 2e2e71e1fa
commit 27126157d9
22 changed files with 344 additions and 7 deletions

View file

@ -33,6 +33,7 @@
#include "runtime/nonJavaThread.hpp"
#include "runtime/osThread.hpp"
#include "runtime/task.hpp"
#include "sanitizers/leak.hpp"
#include "utilities/defaultStream.hpp"
#include "utilities/singleWriterSynchronizer.hpp"
#include "utilities/vmError.hpp"
@ -285,6 +286,7 @@ void WatcherThread::run() {
// Signal that it is terminated
{
MutexLocker mu(Terminator_lock, Mutex::_no_safepoint_check_flag);
LSAN_IGNORE_OBJECT(_watcher_thread);
_watcher_thread = nullptr;
Terminator_lock->notify_all();
}