4 # Date 1542877918 -3600
5 # Node ID 7088cfa71363656579b585f14d55ad45c654a7a0
6 # Parent 4f45c682eab0ef38fc3b81681589590479994c87
7 8214105: [TESTBUG] Bit test is always false in serviceability/jvmti/StartPhase/AllowedFunctions
8 Reviewed-by: dcubed, dholmes, jcbeyler, gadams, sspitsyn
9 Contributed-by: Simon Tooke <stooke@redhat.com>
11 diff -r 4f45c682eab0 -r 7088cfa71363 test/hotspot/jtreg/serviceability/jvmti/StartPhase/AllowedFunctions/libAllowedFunctions.c
12 --- a/test/hotspot/jtreg/serviceability/jvmti/StartPhase/AllowedFunctions/libAllowedFunctions.c Thu Nov 22 10:01:38 2018 +0100
13 +++ b/test/hotspot/jtreg/serviceability/jvmti/StartPhase/AllowedFunctions/libAllowedFunctions.c Thu Nov 22 10:11:58 2018 +0100
15 // This function is only used in a ClassPrepare event context
16 if ((status & JVMTI_CLASS_STATUS_VERIFIED) == 0 ||
17 (status & JVMTI_CLASS_STATUS_PREPARED) == 0 ||
18 - (status & JVMTI_CLASS_STATUS_INITIALIZED) == 1 ||
19 - (status & JVMTI_CLASS_STATUS_ERROR) == 1) {
20 + (status & JVMTI_CLASS_STATUS_INITIALIZED) != 0 ||
21 + (status & JVMTI_CLASS_STATUS_ERROR) != 0) {
22 printf(" ## Error: unexpected class status: 0x%08x\n", status);
24 printf(" Class status: 0x%08x\n", status);