Skip to content

Commit

Permalink
8343129: Disable unstable check of ThreadsListHandle.sanity_vm Thread…
Browse files Browse the repository at this point in the history
…List values
  • Loading branch information
sendaoYan committed Oct 28, 2024
1 parent 0e3fc93 commit 81b8c91
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions test/hotspot/gtest/runtime/test_ThreadsListHandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ TEST_VM(ThreadsListHandle, sanity) {
// Verify the current thread refers to tlh2:
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh2.list())
<< "thr->_threads_hazard_ptr must match tlh2.list()";
EXPECT_EQ(tlh1.list(), tlh2.list())
<< "tlh1.list() must match tlh2.list()";
// Disable unstable check of ThreadsListHandle.sanity_vm ThreadList values,
// util 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)
<< "thr->_threads_list_ptr must match list_ptr2";
EXPECT_NE(list_ptr1, list_ptr2)
Expand Down Expand Up @@ -291,8 +293,10 @@ TEST_VM(ThreadsListHandle, sanity) {
// Verify the current thread refers to tlh2:
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh2.list())
<< "thr->_threads_hazard_ptr must match tlh2.list()";
EXPECT_EQ(tlh1.list(), tlh2.list())
<< "tlh1.list() must match tlh2.list()";
// Disable unstable check of ThreadsListHandle.sanity_vm ThreadList values,
// util 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)
<< "thr->_threads_list_ptr must match list_ptr2";
EXPECT_NE(list_ptr1, list_ptr2)
Expand Down Expand Up @@ -339,8 +343,10 @@ TEST_VM(ThreadsListHandle, sanity) {
// Verify the current thread refers to tlh3:
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh3.list())
<< "thr->_threads_hazard_ptr must match tlh3.list()";
EXPECT_EQ(tlh1.list(), tlh3.list())
<< "tlh1.list() must match tlh3.list()";
// Disable unstable check of ThreadsListHandle.sanity_vm ThreadList values,
// util 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)
<< "thr->_threads_list_ptr must match list_ptr3";
EXPECT_NE(list_ptr1, list_ptr3)
Expand Down Expand Up @@ -523,8 +529,10 @@ TEST_VM(ThreadsListHandle, sanity) {
// Verify the current thread refers to tlh2a:
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh2a.list())
<< "thr->_threads_hazard_ptr must match tlh2a.list()";
EXPECT_EQ(tlh1.list(), tlh2a.list())
<< "tlh1.list() must match tlh2a.list()";
// Disable unstable check of ThreadsListHandle.sanity_vm ThreadList values,
// util 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)
<< "thr->_threads_list_ptr must match list_ptr2a";
EXPECT_NE(list_ptr1, list_ptr2a)
Expand Down Expand Up @@ -601,8 +609,10 @@ TEST_VM(ThreadsListHandle, sanity) {
// Verify the current thread refers to tlh2b:
EXPECT_EQ(ThreadsListHandleTest::get_Thread_threads_hazard_ptr(thr), tlh2b.list())
<< "thr->_threads_hazard_ptr must match tlh2b.list()";
EXPECT_EQ(tlh1.list(), tlh2b.list())
<< "tlh1.list() must match tlh2b.list()";
// Disable unstable check of ThreadsListHandle.sanity_vm ThreadList values,
// util 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)
<< "thr->_threads_list_ptr must match list_ptr2b";
EXPECT_NE(list_ptr1, list_ptr2b)
Expand Down

0 comments on commit 81b8c91

Please sign in to comment.