projects
/
platform
/
upstream
/
v8.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b268bc
)
Use CHECK_LT in CheckHandleCountVisitor for better error message
author
adamk
<adamk@chromium.org>
Mon, 22 Jun 2015 19:18:27 +0000
(12:18 -0700)
committer
Commit 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
patch
|
blob
|
history
diff --git
a/src/heap/heap.cc
b/src/heap/heap.cc
index dbe7cc27b8d3f93df974e008c71847d9dd3c50db..df1ba3129f859c61163561df1e709de6d1b2dd4a 100644
(file)
--- 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;
}