Reviewers: arv,

Description:
Use CHECK_LT in CheckHandleCountVisitor for better error message

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

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

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


Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index dbe7cc27b8d3f93df974e008c71847d9dd3c50db..df1ba3129f859c61163561df1e709de6d1b2dd4a 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -5977,7 +5977,7 @@ void Heap::PrintHandles() {
 class CheckHandleCountVisitor : public ObjectVisitor {
  public:
   CheckHandleCountVisitor() : handle_count_(0) {}
-  ~CheckHandleCountVisitor() { CHECK(handle_count_ < 2000); }
+  ~CheckHandleCountVisitor() { CHECK_LT(handle_count_, 2000); }
   void VisitPointers(Object** start, Object** end) {
     handle_count_ += end - start;
   }


--
--
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