OSDN Git Service

Fix pending exception failure for encoded statics
authorMathieu Chartier <mathieuc@google.com>
Wed, 10 Aug 2016 20:57:39 +0000 (13:57 -0700)
committerMathieu Chartier <mathieuc@google.com>
Thu, 11 Aug 2016 01:57:19 +0000 (18:57 -0700)
commit5464c73567ccccd0cda6449d2a2775814d5fe88d
treeaf6143d16eb36c82ab91790b0e7d04df837c40c4
parent6b9c54c8ae70d5a75e26bef20a26316ff7c9ab18
Fix pending exception failure for encoded statics

ReadValueToField may allocate a string and cause OOME, we were
not checking this each loop iteration. Throwing an exception
with a pending exception causes an abort.

Bug: 30690988

Test: test-art-host

(cherry picked from commit da595bec0f9af0b087822e4febc282fe8ec28192)

Change-Id: I4701a4dcc63553aeb5c7970f99fd7f136443b266
runtime/class_linker.cc
test/617-clinit-oome/expected.txt [new file with mode: 0644]
test/617-clinit-oome/info.txt [new file with mode: 0644]
test/617-clinit-oome/src/Main.java [new file with mode: 0644]
test/617-clinit-oome/src/Other.java [new file with mode: 0644]