deps: V8: cherry-pick 9622696 from upstream

Original commit message:
  [profiler] sampled allocations should be marked as independent

  Sampling heap profiler keeps weak references. These should be marked
  independent so that the weak callback can be dispatched on new space
  collections.

  BUG= v8:4959
  LOG=N
  R=ulan@chromium.org

  Review-Url: https://codereview.chromium.org/1945193002
  Cr-Commit-Position: refs/heads/master@{#36012}

Ref: https://bugs.chromium.org/p/v8/issues/detail?id=4959
Ref: https://github.com/v8/v8/commit/9622696b5e225ca642f9ea88c0473d59cde062c2
This commit is contained in:
Ali Ijaz Sheikh authored and Myles Borins committed 2017-12-19 13:46:33 -05:00
1 parent 93ca2f78c6
commit 9804e7f3bb
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@
#define V8_MAJOR_VERSION 5
#define V8_MINOR_VERSION 1
#define V8_BUILD_NUMBER 281
#define V8_PATCH_LEVEL 109
#define V8_PATCH_LEVEL 110
// Use 1 for candidates and 0 otherwise.
// (Boolean macro values are not supported by all preprocessors.)
+1
View File
@@ -109,6 +109,7 @@ void SamplingHeapProfiler::SampleObject(Address soon_object, size_t size) {
Sample* sample = new Sample(size, node, loc, this);
samples_.insert(sample);
sample->global.SetWeak(sample, OnWeakCallback, WeakCallbackType::kParameter);
sample->global.MarkIndependent();
}
void SamplingHeapProfiler::OnWeakCallback(