Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.5 release: fix cooperative global executor #3606

Merged
merged 9 commits into from
Sep 28, 2021

Commits on Sep 28, 2021

  1. [Concurrency] repair cooperative global executor

    This patch guards some includes of libdispatch headers so that platforms
    that doesn't support libdispatch can build cooperative executor runtime.
    And fixed missing implementations for cooperative mode.
    
    # Conflicts:
    #	stdlib/public/Concurrency/GlobalExecutor.cpp
    kateinoigakukun authored and MaxDesiatov committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    8b27d5e View commit details
    Browse the repository at this point in the history
  2. [Concurrency] repair cooperative main executor

    This patch repairs the build failure for cooperative executor.
    And also fixed main executor to avoid assertion failure due to
    `witnessTable == nullptr`
    
    # Conflicts:
    #	stdlib/public/Concurrency/GlobalExecutor.cpp
    kateinoigakukun authored and MaxDesiatov committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    16b6fcf View commit details
    Browse the repository at this point in the history
  3. [test] fix runtime unittests for single threaded runtime

    Some headers switch their inline implementations based on
    SWIFT_STDLIB_SINGLE_THREAD_RUNTIME definition.
    This fixes linking failure while building runtime unittests
    
    # Conflicts:
    #	stdlib/public/Concurrency/Mutex.cpp
    kateinoigakukun authored and MaxDesiatov committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    6c981c7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6b7c366 View commit details
    Browse the repository at this point in the history
  5. [test] mark multi-thread based tests as UNSUPPORTED in single-thread

    Some of test cases assumes that the runtime is built for multi-threaded
    platform.
    
    # Conflicts:
    #	test/Concurrency/Runtime/cancellation_handler.swift
    #	test/Concurrency/Runtime/data_race_detection.swift
    kateinoigakukun authored and MaxDesiatov committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    0a0c97a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8d08301 View commit details
    Browse the repository at this point in the history
  7. [test] disable unittests/runtime/Mutex.cpp for single-thread runtime

    # Conflicts:
    #	unittests/runtime/CMakeLists.txt
    kateinoigakukun authored and MaxDesiatov committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    d663923 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d3e28c1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7a5f534 View commit details
    Browse the repository at this point in the history