Commit 97a887c5 authored by adamk's avatar adamk Committed by Commit bot

Use CHECK_LT in CheckHandleCountVisitor for better error message

Review URL: https://codereview.chromium.org/1201773005

Cr-Commit-Position: refs/heads/master@{#29203}
parent 6b268bce
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment