• Home
  • Raw
  • Download

Lines Matching refs:extensions

871 static void FreeExtensionFunctionInfo(jvmtiExtensionFunctionInfo* extensions, jint count) {  in FreeExtensionFunctionInfo()  argument
873 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(extensions[i].id)); in FreeExtensionFunctionInfo()
874 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(extensions[i].short_description)); in FreeExtensionFunctionInfo()
875 for (size_t j = 0; j != static_cast<size_t>(extensions[i].param_count); ++j) { in FreeExtensionFunctionInfo()
876 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(extensions[i].params[j].name)); in FreeExtensionFunctionInfo()
878 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(extensions[i].params)); in FreeExtensionFunctionInfo()
879 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(extensions[i].errors)); in FreeExtensionFunctionInfo()
886 jvmtiExtensionFunctionInfo* extensions; in Java_art_Test913_checkForExtensionApis() local
887 jvmtiError result = jvmti_env->GetExtensionFunctions(&extension_count, &extensions); in Java_art_Test913_checkForExtensionApis()
893 if (strcmp("com.android.art.heap.get_object_heap_id", extensions[i].id) == 0) { in Java_art_Test913_checkForExtensionApis()
895 gGetObjectHeapIdFn = reinterpret_cast<GetObjectHeapId>(extensions[i].func); in Java_art_Test913_checkForExtensionApis()
897 CHECK_EQ(extensions[i].param_count, 2); in Java_art_Test913_checkForExtensionApis()
899 CHECK_EQ(strcmp("tag", extensions[i].params[0].name), 0); in Java_art_Test913_checkForExtensionApis()
900 CHECK_EQ(extensions[i].params[0].base_type, JVMTI_TYPE_JLONG); in Java_art_Test913_checkForExtensionApis()
901 CHECK_EQ(extensions[i].params[0].kind, JVMTI_KIND_IN); in Java_art_Test913_checkForExtensionApis()
903 CHECK_EQ(strcmp("heap_id", extensions[i].params[1].name), 0); in Java_art_Test913_checkForExtensionApis()
904 CHECK_EQ(extensions[i].params[1].base_type, JVMTI_TYPE_JINT); in Java_art_Test913_checkForExtensionApis()
905 CHECK_EQ(extensions[i].params[1].kind, JVMTI_KIND_OUT); in Java_art_Test913_checkForExtensionApis()
906 CHECK_EQ(extensions[i].params[1].null_ok, false); in Java_art_Test913_checkForExtensionApis()
908 CHECK_EQ(extensions[i].error_count, 1); in Java_art_Test913_checkForExtensionApis()
909 CHECK(extensions[i].errors != nullptr); in Java_art_Test913_checkForExtensionApis()
910 CHECK(extensions[i].errors[0] == JVMTI_ERROR_NOT_FOUND); in Java_art_Test913_checkForExtensionApis()
915 if (strcmp("com.android.art.heap.get_heap_name", extensions[i].id) == 0) { in Java_art_Test913_checkForExtensionApis()
917 gGetHeapNameFn = reinterpret_cast<GetHeapName>(extensions[i].func); in Java_art_Test913_checkForExtensionApis()
919 CHECK_EQ(extensions[i].param_count, 2); in Java_art_Test913_checkForExtensionApis()
921 CHECK_EQ(strcmp("heap_id", extensions[i].params[0].name), 0); in Java_art_Test913_checkForExtensionApis()
922 CHECK_EQ(extensions[i].params[0].base_type, JVMTI_TYPE_JINT); in Java_art_Test913_checkForExtensionApis()
923 CHECK_EQ(extensions[i].params[0].kind, JVMTI_KIND_IN); in Java_art_Test913_checkForExtensionApis()
925 CHECK_EQ(strcmp("heap_name", extensions[i].params[1].name), 0); in Java_art_Test913_checkForExtensionApis()
926 CHECK_EQ(extensions[i].params[1].base_type, JVMTI_TYPE_CCHAR); in Java_art_Test913_checkForExtensionApis()
927 CHECK_EQ(extensions[i].params[1].kind, JVMTI_KIND_ALLOC_BUF); in Java_art_Test913_checkForExtensionApis()
928 CHECK_EQ(extensions[i].params[1].null_ok, false); in Java_art_Test913_checkForExtensionApis()
930 CHECK_EQ(extensions[i].error_count, 1); in Java_art_Test913_checkForExtensionApis()
931 CHECK(extensions[i].errors != nullptr); in Java_art_Test913_checkForExtensionApis()
932 CHECK(extensions[i].errors[0] == JVMTI_ERROR_ILLEGAL_ARGUMENT); in Java_art_Test913_checkForExtensionApis()
935 if (strcmp("com.android.art.heap.iterate_through_heap_ext", extensions[i].id) == 0) { in Java_art_Test913_checkForExtensionApis()
937 gIterateThroughHeapExt = reinterpret_cast<IterateThroughHeapExt>(extensions[i].func); in Java_art_Test913_checkForExtensionApis()
939 CHECK_EQ(extensions[i].param_count, 4); in Java_art_Test913_checkForExtensionApis()
941 CHECK_EQ(strcmp("heap_filter", extensions[i].params[0].name), 0); in Java_art_Test913_checkForExtensionApis()
942 CHECK_EQ(extensions[i].params[0].base_type, JVMTI_TYPE_JINT); in Java_art_Test913_checkForExtensionApis()
943 CHECK_EQ(extensions[i].params[0].kind, JVMTI_KIND_IN); in Java_art_Test913_checkForExtensionApis()
945 CHECK_EQ(strcmp("klass", extensions[i].params[1].name), 0); in Java_art_Test913_checkForExtensionApis()
946 CHECK_EQ(extensions[i].params[1].base_type, JVMTI_TYPE_JCLASS); in Java_art_Test913_checkForExtensionApis()
947 CHECK_EQ(extensions[i].params[1].kind, JVMTI_KIND_IN); in Java_art_Test913_checkForExtensionApis()
948 CHECK_EQ(extensions[i].params[1].null_ok, true); in Java_art_Test913_checkForExtensionApis()
950 CHECK_EQ(strcmp("callbacks", extensions[i].params[2].name), 0); in Java_art_Test913_checkForExtensionApis()
951 CHECK_EQ(extensions[i].params[2].base_type, JVMTI_TYPE_CVOID); in Java_art_Test913_checkForExtensionApis()
952 CHECK_EQ(extensions[i].params[2].kind, JVMTI_KIND_IN_PTR); in Java_art_Test913_checkForExtensionApis()
953 CHECK_EQ(extensions[i].params[2].null_ok, false); in Java_art_Test913_checkForExtensionApis()
955 CHECK_EQ(strcmp("user_data", extensions[i].params[3].name), 0); in Java_art_Test913_checkForExtensionApis()
956 CHECK_EQ(extensions[i].params[3].base_type, JVMTI_TYPE_CVOID); in Java_art_Test913_checkForExtensionApis()
957 CHECK_EQ(extensions[i].params[3].kind, JVMTI_KIND_IN_PTR); in Java_art_Test913_checkForExtensionApis()
958 CHECK_EQ(extensions[i].params[3].null_ok, true); in Java_art_Test913_checkForExtensionApis()
960 CHECK_EQ(extensions[i].error_count, 3); in Java_art_Test913_checkForExtensionApis()
961 CHECK(extensions[i].errors != nullptr); in Java_art_Test913_checkForExtensionApis()
962 CHECK(extensions[i].errors[0] == JVMTI_ERROR_MUST_POSSESS_CAPABILITY); in Java_art_Test913_checkForExtensionApis()
963 CHECK(extensions[i].errors[1] == JVMTI_ERROR_INVALID_CLASS); in Java_art_Test913_checkForExtensionApis()
964 CHECK(extensions[i].errors[2] == JVMTI_ERROR_NULL_POINTER); in Java_art_Test913_checkForExtensionApis()
971 FreeExtensionFunctionInfo(extensions, extension_count); in Java_art_Test913_checkForExtensionApis()