• Home
  • Raw
  • Download

Lines Matching refs:extensions

885 static void FreeExtensionFunctionInfo(jvmtiExtensionFunctionInfo* extensions, jint count) {  in FreeExtensionFunctionInfo()  argument
887 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(extensions[i].id)); in FreeExtensionFunctionInfo()
888 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(extensions[i].short_description)); in FreeExtensionFunctionInfo()
889 for (size_t j = 0; j != static_cast<size_t>(extensions[i].param_count); ++j) { in FreeExtensionFunctionInfo()
890 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(extensions[i].params[j].name)); in FreeExtensionFunctionInfo()
892 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(extensions[i].params)); in FreeExtensionFunctionInfo()
893 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(extensions[i].errors)); in FreeExtensionFunctionInfo()
900 jvmtiExtensionFunctionInfo* extensions; in Java_art_Test913_checkForExtensionApis() local
901 jvmtiError result = jvmti_env->GetExtensionFunctions(&extension_count, &extensions); in Java_art_Test913_checkForExtensionApis()
907 if (strcmp("com.android.art.heap.get_object_heap_id", extensions[i].id) == 0) { in Java_art_Test913_checkForExtensionApis()
909 gGetObjectHeapIdFn = reinterpret_cast<GetObjectHeapId>(extensions[i].func); in Java_art_Test913_checkForExtensionApis()
911 CHECK_EQ(extensions[i].param_count, 2); in Java_art_Test913_checkForExtensionApis()
913 CHECK_EQ(strcmp("tag", extensions[i].params[0].name), 0); in Java_art_Test913_checkForExtensionApis()
914 CHECK_EQ(extensions[i].params[0].base_type, JVMTI_TYPE_JLONG); in Java_art_Test913_checkForExtensionApis()
915 CHECK_EQ(extensions[i].params[0].kind, JVMTI_KIND_IN); in Java_art_Test913_checkForExtensionApis()
917 CHECK_EQ(strcmp("heap_id", extensions[i].params[1].name), 0); in Java_art_Test913_checkForExtensionApis()
918 CHECK_EQ(extensions[i].params[1].base_type, JVMTI_TYPE_JINT); in Java_art_Test913_checkForExtensionApis()
919 CHECK_EQ(extensions[i].params[1].kind, JVMTI_KIND_OUT); in Java_art_Test913_checkForExtensionApis()
920 CHECK_EQ(extensions[i].params[1].null_ok, false); in Java_art_Test913_checkForExtensionApis()
922 CHECK_EQ(extensions[i].error_count, 1); in Java_art_Test913_checkForExtensionApis()
923 CHECK(extensions[i].errors != nullptr); in Java_art_Test913_checkForExtensionApis()
924 CHECK(extensions[i].errors[0] == JVMTI_ERROR_NOT_FOUND); in Java_art_Test913_checkForExtensionApis()
929 if (strcmp("com.android.art.heap.get_heap_name", extensions[i].id) == 0) { in Java_art_Test913_checkForExtensionApis()
931 gGetHeapNameFn = reinterpret_cast<GetHeapName>(extensions[i].func); in Java_art_Test913_checkForExtensionApis()
933 CHECK_EQ(extensions[i].param_count, 2); in Java_art_Test913_checkForExtensionApis()
935 CHECK_EQ(strcmp("heap_id", extensions[i].params[0].name), 0); in Java_art_Test913_checkForExtensionApis()
936 CHECK_EQ(extensions[i].params[0].base_type, JVMTI_TYPE_JINT); in Java_art_Test913_checkForExtensionApis()
937 CHECK_EQ(extensions[i].params[0].kind, JVMTI_KIND_IN); in Java_art_Test913_checkForExtensionApis()
939 CHECK_EQ(strcmp("heap_name", extensions[i].params[1].name), 0); in Java_art_Test913_checkForExtensionApis()
940 CHECK_EQ(extensions[i].params[1].base_type, JVMTI_TYPE_CCHAR); in Java_art_Test913_checkForExtensionApis()
941 CHECK_EQ(extensions[i].params[1].kind, JVMTI_KIND_ALLOC_BUF); in Java_art_Test913_checkForExtensionApis()
942 CHECK_EQ(extensions[i].params[1].null_ok, false); in Java_art_Test913_checkForExtensionApis()
944 CHECK_EQ(extensions[i].error_count, 1); in Java_art_Test913_checkForExtensionApis()
945 CHECK(extensions[i].errors != nullptr); in Java_art_Test913_checkForExtensionApis()
946 CHECK(extensions[i].errors[0] == JVMTI_ERROR_ILLEGAL_ARGUMENT); in Java_art_Test913_checkForExtensionApis()
949 if (strcmp("com.android.art.heap.iterate_through_heap_ext", extensions[i].id) == 0) { in Java_art_Test913_checkForExtensionApis()
951 gIterateThroughHeapExt = reinterpret_cast<IterateThroughHeapExt>(extensions[i].func); in Java_art_Test913_checkForExtensionApis()
953 CHECK_EQ(extensions[i].param_count, 4); in Java_art_Test913_checkForExtensionApis()
955 CHECK_EQ(strcmp("heap_filter", extensions[i].params[0].name), 0); in Java_art_Test913_checkForExtensionApis()
956 CHECK_EQ(extensions[i].params[0].base_type, JVMTI_TYPE_JINT); in Java_art_Test913_checkForExtensionApis()
957 CHECK_EQ(extensions[i].params[0].kind, JVMTI_KIND_IN); in Java_art_Test913_checkForExtensionApis()
959 CHECK_EQ(strcmp("klass", extensions[i].params[1].name), 0); in Java_art_Test913_checkForExtensionApis()
960 CHECK_EQ(extensions[i].params[1].base_type, JVMTI_TYPE_JCLASS); in Java_art_Test913_checkForExtensionApis()
961 CHECK_EQ(extensions[i].params[1].kind, JVMTI_KIND_IN); in Java_art_Test913_checkForExtensionApis()
962 CHECK_EQ(extensions[i].params[1].null_ok, true); in Java_art_Test913_checkForExtensionApis()
964 CHECK_EQ(strcmp("callbacks", extensions[i].params[2].name), 0); in Java_art_Test913_checkForExtensionApis()
965 CHECK_EQ(extensions[i].params[2].base_type, JVMTI_TYPE_CVOID); in Java_art_Test913_checkForExtensionApis()
966 CHECK_EQ(extensions[i].params[2].kind, JVMTI_KIND_IN_PTR); in Java_art_Test913_checkForExtensionApis()
967 CHECK_EQ(extensions[i].params[2].null_ok, false); in Java_art_Test913_checkForExtensionApis()
969 CHECK_EQ(strcmp("user_data", extensions[i].params[3].name), 0); in Java_art_Test913_checkForExtensionApis()
970 CHECK_EQ(extensions[i].params[3].base_type, JVMTI_TYPE_CVOID); in Java_art_Test913_checkForExtensionApis()
971 CHECK_EQ(extensions[i].params[3].kind, JVMTI_KIND_IN_PTR); in Java_art_Test913_checkForExtensionApis()
972 CHECK_EQ(extensions[i].params[3].null_ok, true); in Java_art_Test913_checkForExtensionApis()
974 CHECK_EQ(extensions[i].error_count, 3); in Java_art_Test913_checkForExtensionApis()
975 CHECK(extensions[i].errors != nullptr); in Java_art_Test913_checkForExtensionApis()
976 CHECK(extensions[i].errors[0] == JVMTI_ERROR_MUST_POSSESS_CAPABILITY); in Java_art_Test913_checkForExtensionApis()
977 CHECK(extensions[i].errors[1] == JVMTI_ERROR_INVALID_CLASS); in Java_art_Test913_checkForExtensionApis()
978 CHECK(extensions[i].errors[2] == JVMTI_ERROR_NULL_POINTER); in Java_art_Test913_checkForExtensionApis()
985 FreeExtensionFunctionInfo(extensions, extension_count); in Java_art_Test913_checkForExtensionApis()