OSDN Git Service

ART: Do not allow RETURN_VOID_NO_BARRIER outside constructors
authorAndreas Gampe <agampe@google.com>
Fri, 31 Jul 2015 18:34:24 +0000 (11:34 -0700)
committerAndreas Gampe <agampe@google.com>
Fri, 31 Jul 2015 18:34:24 +0000 (11:34 -0700)
commite93505f599682a2e95c4dac1c8633dec79c602bc
treeb40228ac17d9d595a3e6fb7dff7ef64c13f74b75
parent68c5640a71cfb37f8741eeafbfc13b2a40ccefa1
ART: Do not allow RETURN_VOID_NO_BARRIER outside constructors

Let the verifier fail non-constructor methods using the no-barrier
variant of return. This is a quickened return purely to avoid the
constructor barrier for final fields, and cannot be used as a stand-in
for a regular return.

Bug: https://code.google.com/p/android/issues/detail?id=181700
Bug: 22871329
Change-Id: I9559c6a1599c20ce526582527ebed73b25242767
runtime/verifier/method_verifier.cc