commit | 95c466dd3348a875e42f8d5b85bd7eaddfb43cb9 | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Mon May 08 14:50:47 2017 -0700 |
committer | Andreas Gampe <agampe@google.com> | Mon May 08 14:54:37 2017 -0700 |
tree | 50e49accab33648a0056807d95c803d9e3a47317 | |
parent | e1e03503bd4222ef0201568268429ece4fba80d2 [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. Bug: 38133825 Test: m Test: art/test/testrunner/testrunner.py -b --host -t 901 Change-Id: If46b276b8abcd8b7b8ebbac1106f6b840761b997