Skip to content

Commit 7b148c2

Browse files
authored
Merge pull request #4158 from swiftwasm/release/5.5
[pull] swiftwasm-release/5.5 from release/5.5
2 parents c0f1f02 + b5f30b5 commit 7b148c2

File tree

5 files changed

+10
-23
lines changed

5 files changed

+10
-23
lines changed

cmake/modules/AddSwiftUnittests.cmake

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,6 @@ function(add_swift_unittest test_dirname)
2121
set_property(TARGET "${test_dirname}" APPEND_STRING PROPERTY LINK_FLAGS " ${_lto_flag_out} ")
2222
endif()
2323

24-
if(SWIFT_BUILT_STANDALONE AND NOT "${CMAKE_CFG_INTDIR}" STREQUAL ".")
25-
# Replace target references with full paths, so that we use LLVM's
26-
# build configuration rather than Swift's.
27-
get_target_property(libnames ${test_dirname} LINK_LIBRARIES)
28-
29-
set(new_libnames)
30-
foreach(dep ${libnames})
31-
if("${dep}" MATCHES "^(LLVM|Clang|gtest)" AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
32-
list(APPEND new_libnames "${LLVM_LIBRARY_OUTPUT_INTDIR}/lib${dep}.a")
33-
else()
34-
list(APPEND new_libnames "${dep}")
35-
endif()
36-
endforeach()
37-
38-
set_property(TARGET ${test_dirname} PROPERTY LINK_LIBRARIES ${new_libnames})
39-
swift_common_llvm_config(${test_dirname} support)
40-
endif()
41-
4224
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
4325
# Add an @rpath to the swift library directory.
4426
set_target_properties(${test_dirname} PROPERTIES

stdlib/public/Concurrency/TaskGroup.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,14 +396,14 @@ class TaskGroupImpl: public TaskGroupTaskStatusRecord {
396396
///
397397
/// This is used to atomically perform a waiting task completion.
398398
bool statusCompletePendingReadyWaiting(GroupStatus &old) {
399-
return status.compare_exchange_weak(
399+
return status.compare_exchange_strong(
400400
old.status, old.completingPendingReadyWaiting().status,
401401
/*success*/ std::memory_order_relaxed,
402402
/*failure*/ std::memory_order_relaxed);
403403
}
404404

405405
bool statusCompletePendingReady(GroupStatus &old) {
406-
return status.compare_exchange_weak(
406+
return status.compare_exchange_strong(
407407
old.status, old.completingPendingReady().status,
408408
/*success*/ std::memory_order_relaxed,
409409
/*failure*/ std::memory_order_relaxed);
@@ -590,7 +590,7 @@ void TaskGroupImpl::offer(AsyncTask *completedTask, AsyncContext *context) {
590590
assert(assumed.pendingTasks() && "offered to group with no pending tasks!");
591591
// We are the "first" completed task to arrive,
592592
// and since there is a task waiting we immediately claim and complete it.
593-
if (waitQueue.compare_exchange_weak(
593+
if (waitQueue.compare_exchange_strong(
594594
waitingTask, nullptr,
595595
/*success*/ std::memory_order_release,
596596
/*failure*/ std::memory_order_acquire) &&
@@ -757,7 +757,7 @@ PollResult TaskGroupImpl::poll(AsyncTask *waitingTask) {
757757

758758
auto assumedStatus = assumed.status;
759759
auto newStatus = TaskGroupImpl::GroupStatus{assumedStatus};
760-
if (status.compare_exchange_weak(
760+
if (status.compare_exchange_strong(
761761
assumedStatus, newStatus.completingPendingReadyWaiting().status,
762762
/*success*/ std::memory_order_relaxed,
763763
/*failure*/ std::memory_order_acquire)) {
@@ -823,7 +823,7 @@ PollResult TaskGroupImpl::poll(AsyncTask *waitingTask) {
823823
waitingTask->flagAsSuspended();
824824
}
825825
// Put the waiting task at the beginning of the wait queue.
826-
if (waitQueue.compare_exchange_weak(
826+
if (waitQueue.compare_exchange_strong(
827827
waitHead, waitingTask,
828828
/*success*/ std::memory_order_release,
829829
/*failure*/ std::memory_order_acquire)) {

test/IRGen/lto_autolink.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ import AutolinkModuleMapLink
6363
#endif
6464

6565
// UNSUPPORTED: OS=macosx && CPU=arm64
66+
// UNSUPPORTED: OS=linux-gnu && CPU=aarch64

test/Reflection/typeref_decoding_asan.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// XFAIL: OS=linux-gnu && CPU=aarch64
2+
13
// REQUIRES: asan_runtime
24
// RUN: %empty-directory(%t)
35
// RUN: %target-build-swift %S/Inputs/ConcreteTypes.swift %S/Inputs/GenericTypes.swift %S/Inputs/Protocols.swift %S/Inputs/Extensions.swift %S/Inputs/Closures.swift -parse-as-library -emit-module -emit-library -module-name TypesToReflect -sanitize=address -o %t/%target-library-name(TypesToReflect)

test/stdlib/symbol-visibility-linux.test-sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
// RUN: -e _ZNSt10_HashtableImSt4pairIKmSt10unique_ptrIKvSt8functionIFvPS3_EEEESaIS9_ENSt8__detail10_Select1stESt8equal_toImESt4hashImENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev \
2525
// RUN: -e _ZNSt3_V28__rotateIPcEET_S2_S2_S2_St26random_access_iterator_tag \
2626
// RUN: -e _ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z \
27+
// RUN: -e _ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_St9__va_listEmSB_z \
2728
// RUN: -e _ZZNSt19_Sp_make_shared_tag5_S_tiEvE5__tag \
2829
// RUN: -e _ZSt16__once_call_implISt12_Bind_simpleIFPFvPvEDnEEEvv \
2930
// RUN: -e '_ZSt16__once_call_implISt12_Bind_simpleIFPFvPvEPA[0-9]\+_cEEEvv' \
@@ -45,6 +46,7 @@
4546
// RUN: -e _ZNSt10_HashtableImSt4pairIKmSt10unique_ptrIKvSt8functionIFvPS3_EEEESaIS9_ENSt8__detail10_Select1stESt8equal_toImESt4hashImENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev \
4647
// RUN: -e _ZNSt3_V28__rotateIPcEET_S2_S2_S2_St26random_access_iterator_tag \
4748
// RUN: -e _ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z \
49+
// RUN: -e _ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_St9__va_listEmSB_z \
4850
// RUN: -e _ZZNSt19_Sp_make_shared_tag5_S_tiEvE5__tag \
4951
// RUN: -e _ZSt16__once_call_implISt12_Bind_simpleIFPFvPvEDnEEEvv \
5052
// RUN: -e '_ZSt16__once_call_implISt12_Bind_simpleIFPFvPvEPA[0-9]\+_cEEEvv' \

0 commit comments

Comments
 (0)