Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: src/heap/heap.cc

Issue 1918453002: Version 5.0.71.35 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.0
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8-version.h ('k') | src/profiler/heap-profiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index ad6c451cbe8e985b2390f904e010386a79cc2b83..1c9be1aa49acee10fded7f9d03cee3aebfcfcc26 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -3069,6 +3069,9 @@ void Heap::CreateFillerObjectAt(Address addr, int size) {
bool Heap::CanMoveObjectStart(HeapObject* object) {
if (!FLAG_move_object_start) return false;
+ // Sampling heap profiler may have a reference to the object.
+ if (isolate()->heap_profiler()->is_sampling_allocations()) return false;
+
Address address = object->address();
if (lo_space()->Contains(object)) return false;
« no previous file with comments | « include/v8-version.h ('k') | src/profiler/heap-profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698