mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8298445: Add LeakSanitizer support in HotSpot
Reviewed-by: erikj, ihse
This commit is contained in:
parent
2e2e71e1fa
commit
27126157d9
22 changed files with 344 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue