test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetClassMethods/getclmthd007/getclmthd007.cpp
changeset 52776 c05ba185a1d3
parent 51653 b51d348698c2
equal deleted inserted replaced
52775:d488477865c0 52776:c05ba185a1d3
    47 static jvmtiEnv *jvmti = NULL;
    47 static jvmtiEnv *jvmti = NULL;
    48 static jint result = PASSED;
    48 static jint result = PASSED;
    49 static jboolean printdump = JNI_FALSE;
    49 static jboolean printdump = JNI_FALSE;
    50 
    50 
    51 static meth_info m0[] = {
    51 static meth_info m0[] = {
    52     {"<init>", "(Lnsk/jvmti/GetClassMethods/getclmthd007;)V"},
    52     { "<init>", "(Lnsk/jvmti/GetClassMethods/getclmthd007;)V" },
    53     {"meth_1", "(Ljava/lang/String;)V"}
    53     { "meth_1", "(Ljava/lang/String;)V" }
    54 };
    54 };
    55 
    55 
    56 static meth_info m1[] = {
    56 static meth_info m1[] = {
    57     {"meth_n1", "()V"}
    57     { "meth_n1", "()V" }
    58 };
    58 };
    59 
    59 
    60 static meth_info m2[] = {
    60 static meth_info m2[] = {
    61     {"<init>", "()V"},
    61     { "<init>", "()V" },
    62     {"meth_n1", "()V"},
    62     { "meth_n1", "()V" },
    63     {"meth_n2", "()I"},
    63     { "meth_n2", "()I" },
    64     {"<clinit>", "()V"}
    64     { "<clinit>", "()V" }
    65 };
    65 };
    66 
    66 
    67 static meth_info m3[] = {
    67 static meth_info m3[] = {
    68     {"<init>", "()V"}
    68     { "<init>", "()V" }
    69 };
    69 };
    70 
    70 
    71 static meth_info m4[] = {
    71 static meth_info m4[] = {
    72     {"<init>", "()V"},
    72     { "<init>", "()V" },
    73     {"meth_o2", "()V"}
    73     { "meth_o2", "()V" }
    74 };
    74 };
    75 
    75 
    76 static meth_info m5[] = {
    76 static meth_info m5[] = {
    77     {"<init>", "()V"},
    77     { "<init>", "()V" },
    78     {"meth_o3", "()I"}
    78     { "meth_o3", "()I" }
    79 };
    79 };
    80 
    80 
    81 static meth_info m6[] = {
    81 static meth_info m6[] = {
    82     {"meth_i1", "()I"}
    82     { "meth_i1", "()I" }
    83 };
    83 };
    84 
    84 
    85 static meth_info m7[] = {
    85 static meth_info m7[] = {
    86     {"meth_i2", "()I"}
    86     { "meth_i2", "()I" }
    87 };
    87 };
    88 
    88 
    89 static meth_info m8[] = {
    89 static meth_info m8[] = {
    90     {"<init>", "()V"},
    90     { "<init>", "()V" },
    91     {"meth_i2", "()I"}
    91     { "meth_i2", "()I" }
    92 };
    92 };
    93 
    93 
    94 static meth_info m9[] = {
    94 static meth_info m9[] = {
    95     {"<init>", "()V"},
    95     { "<init>", "()V" },
    96     {"meth_i1", "()I"}
    96     { "meth_i1", "()I" }
    97 };
    97 };
    98 
    98 
    99 static class_info classes[] = {
    99 static class_info classes[] = {
   100     {"InnerClass1", 2, m0},
   100     { "InnerClass1", 2, m0 },
   101     {"InnerInterface", 1, m1},
   101     { "InnerInterface", 1, m1 },
   102     {"InnerClass2", 4, m2},
   102     { "InnerClass2", 4, m2 },
   103     {"OuterClass1", 1, m3},
   103     { "OuterClass1", 1, m3 },
   104     {"OuterClass2", 2, m4},
   104     { "OuterClass2", 2, m4 },
   105     {"OuterClass3", 2, m5},
   105     { "OuterClass3", 2, m5 },
   106     {"OuterInterface1", 1, m6},
   106     { "OuterInterface1", 1, m6 },
   107     {"OuterInterface2", 1, m7},
   107     { "OuterInterface2", 1, m7 },
   108     {"OuterClass4", 2, m8},
   108     { "OuterClass4", 2, m8 },
   109     {"OuterClass5", 2, m9}
   109     { "OuterClass5", 2, m9 }
   110 };
   110 };
   111 
   111 
   112 #ifdef STATIC_BUILD
   112 #ifdef STATIC_BUILD
   113 JNIEXPORT jint JNICALL Agent_OnLoad_getclmthd007(JavaVM *jvm, char *options, void *reserved) {
   113 JNIEXPORT jint JNICALL Agent_OnLoad_getclmthd007(JavaVM *jvm, char *options, void *reserved) {
   114     return Agent_Initialize(jvm, options, reserved);
   114     return Agent_Initialize(jvm, options, reserved);