From: Andreas Gampe Date: Mon, 9 Jan 2017 18:50:17 +0000 (-0800) Subject: ART: Add trivial implementation of extensions X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e4c3384710c1eedd44095d0cb6d3b43c77182100;p=android-x86%2Fart.git ART: Add trivial implementation of extensions We do not need extension support. Bug: 31455788 Test: m test-art-host Change-Id: I40e9435ad3ffee83070c522a1938509db4cc889e --- diff --git a/runtime/openjdkjvmti/OpenjdkJvmTi.cc b/runtime/openjdkjvmti/OpenjdkJvmTi.cc index 81e21d1d8..fa55e85ec 100644 --- a/runtime/openjdkjvmti/OpenjdkJvmTi.cc +++ b/runtime/openjdkjvmti/OpenjdkJvmTi.cc @@ -840,19 +840,28 @@ class JvmtiFunctions { static jvmtiError GetExtensionFunctions(jvmtiEnv* env, jint* extension_count_ptr, jvmtiExtensionFunctionInfo** extensions) { - return ERR(NOT_IMPLEMENTED); + // We do not have any extension functions. + *extension_count_ptr = 0; + *extensions = nullptr; + + return ERR(NONE); } static jvmtiError GetExtensionEvents(jvmtiEnv* env, jint* extension_count_ptr, jvmtiExtensionEventInfo** extensions) { - return ERR(NOT_IMPLEMENTED); + // We do not have any extension events. + *extension_count_ptr = 0; + *extensions = nullptr; + + return ERR(NONE); } static jvmtiError SetExtensionEventCallback(jvmtiEnv* env, jint extension_event_index, jvmtiExtensionEvent callback) { - return ERR(NOT_IMPLEMENTED); + // We do not have any extension events, so any call is illegal. + return ERR(ILLEGAL_ARGUMENT); } static jvmtiError GetPotentialCapabilities(jvmtiEnv* env, jvmtiCapabilities* capabilities_ptr) {