8343129: Disable unstable check of ThreadsListHandle.sanity_vm ThreadList values

Reviewed-by: dholmes
This commit is contained in:
SendaoYan 2024-11-19 15:17:34 +00:00
parent 1717946c1b
commit 59fcfae630

View File

@ -171,8 +171,10 @@ TEST_VM(ThreadsListHandle, sanity) {
// Verify the current thread refers to tlh2: // Verify the current thread refers to tlh2:
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh2.list()) EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh2.list())
<< "thr->_threads_hazard_ptr must match tlh2.list()"; << "thr->_threads_hazard_ptr must match tlh2.list()";
EXPECT_EQ(tlh1.list(), tlh2.list()) // Disable unstable check of ThreadsListHandle.sanity_vm ThreadList values,
<< "tlh1.list() must match tlh2.list()"; // until the root cause of test failure(JDK-8315141) has been fixed
// EXPECT_EQ(tlh1.list(), tlh2.list())
// << "tlh1.list() must match tlh2.list()";
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_list_ptr(thr), list_ptr2) EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_list_ptr(thr), list_ptr2)
<< "thr->_threads_list_ptr must match list_ptr2"; << "thr->_threads_list_ptr must match list_ptr2";
EXPECT_NE(list_ptr1, list_ptr2) EXPECT_NE(list_ptr1, list_ptr2)
@ -291,8 +293,10 @@ TEST_VM(ThreadsListHandle, sanity) {
// Verify the current thread refers to tlh2: // Verify the current thread refers to tlh2:
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh2.list()) EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh2.list())
<< "thr->_threads_hazard_ptr must match tlh2.list()"; << "thr->_threads_hazard_ptr must match tlh2.list()";
EXPECT_EQ(tlh1.list(), tlh2.list()) // Disable unstable check of ThreadsListHandle.sanity_vm ThreadList values,
<< "tlh1.list() must match tlh2.list()"; // until the root cause of test failure(JDK-8315141) has been fixed
// EXPECT_EQ(tlh1.list(), tlh2.list())
// << "tlh1.list() must match tlh2.list()";
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_list_ptr(thr), list_ptr2) EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_list_ptr(thr), list_ptr2)
<< "thr->_threads_list_ptr must match list_ptr2"; << "thr->_threads_list_ptr must match list_ptr2";
EXPECT_NE(list_ptr1, list_ptr2) EXPECT_NE(list_ptr1, list_ptr2)
@ -339,8 +343,10 @@ TEST_VM(ThreadsListHandle, sanity) {
// Verify the current thread refers to tlh3: // Verify the current thread refers to tlh3:
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh3.list()) EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh3.list())
<< "thr->_threads_hazard_ptr must match tlh3.list()"; << "thr->_threads_hazard_ptr must match tlh3.list()";
EXPECT_EQ(tlh1.list(), tlh3.list()) // Disable unstable check of ThreadsListHandle.sanity_vm ThreadList values,
<< "tlh1.list() must match tlh3.list()"; // until the root cause of test failure(JDK-8315141) has been fixed
// EXPECT_EQ(tlh1.list(), tlh3.list())
// << "tlh1.list() must match tlh3.list()";
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_list_ptr(thr), list_ptr3) EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_list_ptr(thr), list_ptr3)
<< "thr->_threads_list_ptr must match list_ptr3"; << "thr->_threads_list_ptr must match list_ptr3";
EXPECT_NE(list_ptr1, list_ptr3) EXPECT_NE(list_ptr1, list_ptr3)
@ -523,8 +529,10 @@ TEST_VM(ThreadsListHandle, sanity) {
// Verify the current thread refers to tlh2a: // Verify the current thread refers to tlh2a:
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh2a.list()) EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh2a.list())
<< "thr->_threads_hazard_ptr must match tlh2a.list()"; << "thr->_threads_hazard_ptr must match tlh2a.list()";
EXPECT_EQ(tlh1.list(), tlh2a.list()) // Disable unstable check of ThreadsListHandle.sanity_vm ThreadList values,
<< "tlh1.list() must match tlh2a.list()"; // until the root cause of test failure(JDK-8315141) has been fixed
// EXPECT_EQ(tlh1.list(), tlh2a.list())
// << "tlh1.list() must match tlh2a.list()";
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_list_ptr(thr), list_ptr2a) EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_list_ptr(thr), list_ptr2a)
<< "thr->_threads_list_ptr must match list_ptr2a"; << "thr->_threads_list_ptr must match list_ptr2a";
EXPECT_NE(list_ptr1, list_ptr2a) EXPECT_NE(list_ptr1, list_ptr2a)
@ -601,8 +609,10 @@ TEST_VM(ThreadsListHandle, sanity) {
// Verify the current thread refers to tlh2b: // Verify the current thread refers to tlh2b:
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh2b.list()) EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh2b.list())
<< "thr->_threads_hazard_ptr must match tlh2b.list()"; << "thr->_threads_hazard_ptr must match tlh2b.list()";
EXPECT_EQ(tlh1.list(), tlh2b.list()) // Disable unstable check of ThreadsListHandle.sanity_vm ThreadList values,
<< "tlh1.list() must match tlh2b.list()"; // until the root cause of test failure(JDK-8315141) has been fixed
// EXPECT_EQ(tlh1.list(), tlh2b.list())
// << "tlh1.list() must match tlh2b.list()";
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_list_ptr(thr), list_ptr2b) EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_list_ptr(thr), list_ptr2b)
<< "thr->_threads_list_ptr must match list_ptr2b"; << "thr->_threads_list_ptr must match list_ptr2b";
EXPECT_NE(list_ptr1, list_ptr2b) EXPECT_NE(list_ptr1, list_ptr2b)