diff options
author | Andreas Gampe <agampe@google.com> | 2017-05-08 14:50:47 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2017-05-10 11:11:08 -0700 |
commit | c956b00cc43fc2e6a3b5893307701ae5ad8ae10a (patch) | |
tree | 4e86c7a51f0e3b0bd403769c0ef53c56f70b6f37 /test/ProfileTestMultiDex/Main.java | |
parent | 1b55857a425a071f25c2ff248b0823c8de0b7a3c (diff) |
ART: Fix GetErrorName.
Add missing case for JVMTI_ERROR_THREAD_SUSPENDED. Also return
JVMTI_ERROR_ILLEGAL_ARGUMENT for unspecified inputs.
Refactor the code
* Remove the switch default case for case checking
* Use a lambda to unify the return code. This saves 4K of so size.
Add a test.
(cherry picked from commit 95c466dd3348a875e42f8d5b85bd7eaddfb43cb9)
Bug: 38133825
Test: m
Test: art/test/testrunner/testrunner.py -b --host -t 901
Change-Id: If46b276b8abcd8b7b8ebbac1106f6b840761b997
Diffstat (limited to 'test/ProfileTestMultiDex/Main.java')
0 files changed, 0 insertions, 0 deletions