mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
[vm] Work around some tests infinite looping on TSAN.
vm/cc/StoreReleaseLoadAcquire vm/cc/StoreReleaseLoadAcquire1024 began infinite looping after Clang update TEST=tsan Bug: https://github.com/dart-lang/sdk/issues/50236 Change-Id: I0472e0cae9723bfa89e11289f8ab24e4174209cc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/264263 Reviewed-by: Alexander Markov <alexmarkov@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
parent
c3fb570105
commit
63f957a687
|
@ -103,7 +103,7 @@
|
|||
ISOLATE_UNIT_TEST_CASE_WITH_EXPECTATION(name, expectation) { \
|
||||
volatile intptr_t far_branch_level = 0; \
|
||||
while (true) { \
|
||||
LongJumpScope jump; \
|
||||
LongJumpScope jump(thread); \
|
||||
if (setjmp(*jump.Set()) == 0) { \
|
||||
compiler::ObjectPoolBuilder object_pool_builder; \
|
||||
compiler::Assembler assembler(&object_pool_builder, far_branch_level); \
|
||||
|
@ -113,9 +113,9 @@
|
|||
AssemblerTestRun##name(&test); \
|
||||
return; \
|
||||
} else { \
|
||||
const Error& error = Error::Handle(Thread::Current()->sticky_error()); \
|
||||
const Error& error = Error::Handle(thread->sticky_error()); \
|
||||
if (error.ptr() == Object::branch_offset_error().ptr()) { \
|
||||
ASSERT(far_branch_level < 2); \
|
||||
RELEASE_ASSERT(far_branch_level < 2); \
|
||||
far_branch_level++; \
|
||||
} else { \
|
||||
FATAL1("Unexpected error: %s\n", error.ToErrorCString()); \
|
||||
|
|
Loading…
Reference in a new issue