OSDN Git Service

Fix native allocation watermark clamping.
authorMathieu Chartier <mathieuc@google.com>
Wed, 3 Sep 2014 17:30:11 +0000 (10:30 -0700)
committerMathieu Chartier <mathieuc@google.com>
Thu, 4 Sep 2014 03:49:41 +0000 (20:49 -0700)
commit4c7fc5950853b0c368e2148db77ced7c4d3c303c
tree811300167bfca85f03d560698250aaa68df1cf96
parentff4cfe07009ac0b0f07475ef2aa91d9aaf9ab291
Fix native allocation watermark clamping.

The main issue causing the test to fail is that
native_footprint_gc_watermark_ becoming > growth_limit_ due to no
clamping.

Temporary runFinalization fix is calling runFinalization 2x.

Bug: 17371542
Change-Id: I188cb530a44dd109e066a22091f12f8d2d4350c3
runtime/gc/heap.cc
runtime/gc/heap.h
runtime/native/dalvik_system_VMRuntime.cc