diff options
-rw-r--r-- | runtime/hprof/hprof.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/hprof/hprof.cc b/runtime/hprof/hprof.cc index a2a4f0d..ba28861 100644 --- a/runtime/hprof/hprof.cc +++ b/runtime/hprof/hprof.cc @@ -671,8 +671,9 @@ class Hprof : public SingleRootVisitor { okay = !file_output.Errors(); if (okay) { - // Check for expected size. - CHECK_EQ(file_output.SumLength(), overall_size); + // Check for expected size. Output is expected to be less-or-equal than first phase, see + // b/23521263. + DCHECK_LE(file_output.SumLength(), overall_size); } output_ = nullptr; } @@ -716,8 +717,8 @@ class Hprof : public SingleRootVisitor { // Write the dump. ProcessHeap(true); - // Check for expected size. - CHECK_EQ(net_output.SumLength(), overall_size + kChunkHeaderSize); + // Check for expected size. See DumpToFile for comment. + DCHECK_LE(net_output.SumLength(), overall_size + kChunkHeaderSize); output_ = nullptr; return true; |