diff options
| author | 2017-01-09 19:21:06 -0800 | |
|---|---|---|
| committer | 2017-01-10 13:07:28 -0800 | |
| commit | 1bdaf733b472bc79a8e385f0563ffed603a2c93e (patch) | |
| tree | e518cd8dd72947ef34cd08c8b760d946672e9a2b /runtime/openjdkjvmti/OpenjdkJvmTi.cc | |
| parent | 2e17788df086284845108c6b39954a5c74e93a69 (diff) | |
ART: Add system properties support
Add simple support for GetSystemProperties, GetSystemProperty and
SetSystemProperty. Add a test.
Bug: 31455788
Test: m test-art-host-run-test-922-properties
Change-Id: I02914f04643f0f8fab96f1b372925c2c5306fc9b
Diffstat (limited to 'runtime/openjdkjvmti/OpenjdkJvmTi.cc')
| -rw-r--r-- | runtime/openjdkjvmti/OpenjdkJvmTi.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/openjdkjvmti/OpenjdkJvmTi.cc b/runtime/openjdkjvmti/OpenjdkJvmTi.cc index c472b54b5b..936049fe3d 100644 --- a/runtime/openjdkjvmti/OpenjdkJvmTi.cc +++ b/runtime/openjdkjvmti/OpenjdkJvmTi.cc @@ -51,6 +51,7 @@ #include "ti_heap.h" #include "ti_method.h" #include "ti_object.h" +#include "ti_properties.h" #include "ti_redefine.h" #include "ti_stack.h" #include "transform.h" @@ -1034,15 +1035,15 @@ class JvmtiFunctions { } static jvmtiError GetSystemProperties(jvmtiEnv* env, jint* count_ptr, char*** property_ptr) { - return ERR(NOT_IMPLEMENTED); + return PropertiesUtil::GetSystemProperties(env, count_ptr, property_ptr); } static jvmtiError GetSystemProperty(jvmtiEnv* env, const char* property, char** value_ptr) { - return ERR(NOT_IMPLEMENTED); + return PropertiesUtil::GetSystemProperty(env, property, value_ptr); } static jvmtiError SetSystemProperty(jvmtiEnv* env, const char* property, const char* value) { - return ERR(NOT_IMPLEMENTED); + return PropertiesUtil::SetSystemProperty(env, property, value); } static jvmtiError GetPhase(jvmtiEnv* env, jvmtiPhase* phase_ptr) { |