Use CHECK_LT in CheckHandleCountVisitor for better error message
authoradamk <adamk@chromium.org>
Mon, 22 Jun 2015 19:18:27 +0000 (12:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 22 Jun 2015 19:18:35 +0000 (19:18 +0000)
Review URL: https://codereview.chromium.org/1201773005

Cr-Commit-Position: refs/heads/master@{#29203}

src/heap/heap.cc

index dbe7cc27b8d3f93df974e008c71847d9dd3c50db..df1ba3129f859c61163561df1e709de6d1b2dd4a 100644 (file)
@@ -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;
   }