| Index: third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.cpp b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| index 667a9bd44c9a8f71941ea07607a5892f95a15d57..9c2889ab8f4654174d306014534240ac970cdf9d 100644
|
| --- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| +++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| @@ -1137,6 +1137,8 @@ void ThreadState::preSweep() {
|
|
|
| #if defined(ADDRESS_SANITIZER)
|
| void ThreadState::poisonAllHeaps() {
|
| + CrossThreadPersistentRegion::LockScope persistentLock(
|
| + ProcessHeap::crossThreadPersistentRegion());
|
| // Poisoning all unmarked objects in the other arenas.
|
| for (int i = 1; i < BlinkGC::NumberOfArenas; i++)
|
| m_arenas[i]->poisonArena();
|
| @@ -1147,6 +1149,8 @@ void ThreadState::poisonAllHeaps() {
|
| }
|
|
|
| void ThreadState::poisonEagerArena() {
|
| + CrossThreadPersistentRegion::LockScope persistentLock(
|
| + ProcessHeap::crossThreadPersistentRegion());
|
| m_arenas[BlinkGC::EagerSweepArenaIndex]->poisonArena();
|
| // CrossThreadPersistents in unmarked objects may be accessed from other
|
| // threads (e.g. in CrossThreadPersistentRegion::shouldTracePersistent) and
|
|
|