From 1127b127b688c754585cd1c07ede486a0869d0c6 Mon Sep 17 00:00:00 2001 From: Yevgeny Rouban Date: Tue, 16 Sep 2014 11:29:26 +0700 Subject: ART: fix highest PC values removal in SrcMap.DeltaFormat() The conversion from absolute to offset Line Number Table values mistakenly removed all values less than the highest one, which resulted in clearing all the table. The fix is to use the reverse condition finding the highest correct PC value in the sorted table. Change-Id: I9850c2c46c1910b809043dd8163eb930a7849ded Signed-off-by: Yevgeny Rouban --- compiler/compiled_method.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/compiled_method.h') diff --git a/compiler/compiled_method.h b/compiler/compiled_method.h index 3e34144836..cc46b92dc5 100644 --- a/compiler/compiled_method.h +++ b/compiler/compiled_method.h @@ -154,7 +154,7 @@ class SrcMap FINAL : public std::vector { // get rid of the highest values size_t i = size() - 1; for (; i > 0 ; i--) { - if ((*this)[i].from_ >= highest_pc) { + if ((*this)[i].from_ < highest_pc) { break; } } -- cgit v1.2.3-59-g8ed1b