test/hotspot/jtreg/vmTestbase/nsk/jvmti/RedefineClasses/redefclass019/redefclass019.cpp
changeset 52809 7edc56620d42
parent 51715 13a63d4a3f8d
equal deleted inserted replaced
52808:064e5795fa59 52809:7edc56620d42
    60 static jint framesCount = 0;
    60 static jint framesCount = 0;
    61 
    61 
    62 static const char *cls_exp = "Lnsk/jvmti/RedefineClasses/redefclass019a;";
    62 static const char *cls_exp = "Lnsk/jvmti/RedefineClasses/redefclass019a;";
    63 
    63 
    64 static var_info run[] = {
    64 static var_info run[] = {
    65     {"this", "Lnsk/jvmti/RedefineClasses/redefclass019a;", 0}
    65     { "this", "Lnsk/jvmti/RedefineClasses/redefclass019a;", 0 }
    66 };
    66 };
    67 
    67 
    68 static var_info checkPoint[] = {
    68 static var_info checkPoint[] = {
    69     {"this", "Lnsk/jvmti/RedefineClasses/redefclass019a;", 0}
    69     { "this", "Lnsk/jvmti/RedefineClasses/redefclass019a;", 0 }
    70 };
    70 };
    71 
    71 
    72 static var_info chain1[] = {
    72 static var_info chain1[] = {
    73     {"this", "Lnsk/jvmti/RedefineClasses/redefclass019a;", 0},
    73     { "this", "Lnsk/jvmti/RedefineClasses/redefclass019a;", 0 },
    74     {"localInt1", "I", 2},
    74     { "localInt1", "I", 2 },
    75     {"localInt2", "I", 3333}
    75     { "localInt2", "I", 3333 }
    76 };
    76 };
    77 
    77 
    78 static var_info chain2[] = {
    78 static var_info chain2[] = {
    79     {"this", "Lnsk/jvmti/RedefineClasses/redefclass019a;", 0}
    79     { "this", "Lnsk/jvmti/RedefineClasses/redefclass019a;", 0 }
    80 };
    80 };
    81 
    81 
    82 static var_info chain3[] = {
    82 static var_info chain3[] = {
    83     {"this", "Lnsk/jvmti/RedefineClasses/redefclass019a;", 0}
    83     { "this", "Lnsk/jvmti/RedefineClasses/redefclass019a;", 0 }
    84 };
    84 };
    85 
    85 
    86 static frame_info frames[] = {
    86 static frame_info frames[] = {
    87     {JNI_TRUE,  "checkPoint", "()V", 115, 1, checkPoint},
    87     { JNI_TRUE,  "checkPoint", "()V", 115, 1, checkPoint },
    88     {JNI_FALSE, "chain3",     "()V", 49, 1, chain3},
    88     { JNI_FALSE, "chain3",     "()V", 49, 1, chain3 },
    89     {JNI_FALSE, "chain2",     "()V", 44, 1, chain2},
    89     { JNI_FALSE, "chain2",     "()V", 44, 1, chain2 },
    90     {JNI_FALSE, "chain1",     "()V", 39, 3, chain1},
    90     { JNI_FALSE, "chain1",     "()V", 39, 3, chain1 },
    91     {JNI_FALSE, "run",        "()V", 32, 1, run},
    91     { JNI_FALSE, "run",        "()V", 32, 1, run },
    92 };
    92 };
    93 
    93 
    94 
    94 
    95 void check(jvmtiEnv *jvmti_env, jthread thr, jmethodID mid, jint i) {
    95 void check(jvmtiEnv *jvmti_env, jthread thr, jmethodID mid, jint i) {
    96     jvmtiError err;
    96     jvmtiError err;