# HG changeset patch # User sspitsyn # Date 1542139894 28800 # Node ID 4ca6a67d16727491872f109315afc55a4ce4bdac # Parent 2b5d37ad7d0624ac201680f47e06c1a8edd35009 8213525: new unit test GetLocalVariable/LocalVars is not stable Summary: Comment out unstable checks in the test Reviewed-by: jcbeyler, cjplummer diff -r 2b5d37ad7d06 -r 4ca6a67d1672 test/hotspot/jtreg/serviceability/jvmti/GetLocalVariable/libGetLocalVars.cpp --- a/test/hotspot/jtreg/serviceability/jvmti/GetLocalVariable/libGetLocalVars.cpp Tue Nov 13 13:45:43 2018 -0500 +++ b/test/hotspot/jtreg/serviceability/jvmti/GetLocalVariable/libGetLocalVars.cpp Tue Nov 13 12:11:34 2018 -0800 @@ -89,9 +89,6 @@ DECL_TEST_INV_SLOT_FUNC(int, Int); DECL_TEST_INV_SLOT_FUNC(float, Float); -DECL_TEST_INV_SLOT_FUNC(long, Long); -DECL_TEST_INV_SLOT_FUNC(double, Double); -DECL_TEST_INV_SLOT_FUNC(object, Object); DECL_TEST_TYPE_MISMATCH_FUNC(int, Int); DECL_TEST_TYPE_MISMATCH_FUNC(float, Float); @@ -143,9 +140,7 @@ printf("\n test_local_integer: BEGIN\n\n"); test_int(thr, depth, slot, "int"); - test_long_inv_slot(thr, depth, slot, "int"); test_float(thr, depth, slot, "int"); - test_double_inv_slot(thr, depth, slot, "int"); test_object_type_mismatch(thr, depth, slot, "double"); printf("\n test_local_integer: END\n\n"); @@ -159,7 +154,6 @@ test_long_inv_slot(thr, depth, slot, "invalid"); test_float_inv_slot(thr, depth, slot, "invalid"); test_double_inv_slot(thr, depth, slot, "invalid"); - test_object_inv_slot(thr, depth, slot, "invalid"); printf("\n test_local_invalid: END\n\n"); } @@ -205,6 +199,18 @@ JNIEXPORT void JNICALL Java_GetLocalVars_testLocals(JNIEnv *env, jclass cls, jobject thread) { + /* + * We test the JVMTI GetLocal for locals of the method: + * + * int staticMeth(byte byteArg, Object objArg, double dblArg, int intArg) { + * testLocals(Thread.currentThread()); + * { + * int intLoc = 9999; + * intArg = intLoc; + * } + * return intArg; + * } + */ static const char* METHOD_NAME = "staticMeth"; static const char* METHOD_SIGN = "(BLjava/lang/Object;DI)I"; static const int Depth = 1;