Reviewers: dcarney,

Description:
Check that we're called on a valid heap during idle notifications

BUG=chromium:425035
[email protected]
LOG=n

Please review this at https://codereview.chromium.org/892413006/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+1, -0 lines):
  M src/heap/heap.cc


Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index d5417acf17ae696d7f83fc3172ea2c83b6bcaab6..613e6b9662f9286f0fc51eba71058bc05096a1ff 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -4538,6 +4538,7 @@ bool Heap::IdleNotification(int idle_time_in_ms) {


 bool Heap::IdleNotification(double deadline_in_seconds) {
+  CHECK(HasBeenSetUp());  // http://crbug.com/425035
   double deadline_in_ms =
       deadline_in_seconds *
       static_cast<double>(base::Time::kMillisecondsPerSecond);


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to