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

Incorporate new Native memory model into kotlinx-coroutines mainline #2833

Merged
merged 26 commits into from
Nov 15, 2021

Commits on Oct 26, 2021

  1. Support of new K/N memory model

    * Dispatchers.Default backed by pool of workers on Linux and by global_queue on iOS-like
    * Implementation of Dispatchers.Main that uses main queue on iOS and default dispatcher on other platforms (#2858)
    * Introduced newSingleThreadDispatcher and newFixedThreadPoolDispatcher
    * Use proper reentrant locking and CoW arrays on new memory model, make TestBase _almost_ race-free
    * More thread-safety in Native counterpart and one more test from native-mt
    * Source-set sharing for tests shared between JVM and K/N
    * Wrap Obj-C interop into autorelease pool to avoid memory leaks
    qwwdfsad committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    8cdafed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    206d076 View commit details
    Browse the repository at this point in the history
  3. ~compilation fixes

    qwwdfsad committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    96f7dc1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e052ea1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b343d93 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2021

  1. ~run tests 4 times

    qwwdfsad committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    5442a1c View commit details
    Browse the repository at this point in the history
  2. ~run coroutines in two modes

    qwwdfsad committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    2c8439f View commit details
    Browse the repository at this point in the history
  3. ~cleanup:

      * Dispatchers.Default cannot be closed
      * Throwins Dispatchers.Main on Linux and Windows
    qwwdfsad committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    e8a76cf View commit details
    Browse the repository at this point in the history
  4. ~fixup tests:

       * SharedImmutable where necessary
       * Disable MainDispatcherTest with old MM
    qwwdfsad committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    57d65da View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2021

  1. Configuration menu
    Copy the full SHA
    6ee3209 View commit details
    Browse the repository at this point in the history
  2. Update kotlinx-coroutines-core/native/test/ConcurrentTestUtilities.kt

    Co-authored-by: dkhalanskyjb <52952525+dkhalanskyjb@users.noreply.github.com>
    qwwdfsad and dkhalanskyjb committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    575b468 View commit details
    Browse the repository at this point in the history
  3. Update kotlinx-coroutines-core/native/src/internal/CopyOnWriteList.kt

    Co-authored-by: dkhalanskyjb <52952525+dkhalanskyjb@users.noreply.github.com>
    qwwdfsad and dkhalanskyjb committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    d87858d View commit details
    Browse the repository at this point in the history
  4. Update kotlinx-coroutines-core/native/src/CoroutineContext.kt

    Co-authored-by: dkhalanskyjb <52952525+dkhalanskyjb@users.noreply.github.com>
    qwwdfsad and dkhalanskyjb committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    93f8867 View commit details
    Browse the repository at this point in the history
  5. Update kotlinx-coroutines-core/concurrent/test/AbstractDispatcherConc…

    …urrencyTest.kt
    
    Co-authored-by: dkhalanskyjb <52952525+dkhalanskyjb@users.noreply.github.com>
    qwwdfsad and dkhalanskyjb committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    79ba184 View commit details
    Browse the repository at this point in the history
  6. Update kotlinx-coroutines-core/concurrent/test/AbstractDispatcherConc…

    …urrencyTest.kt
    
    Co-authored-by: dkhalanskyjb <52952525+dkhalanskyjb@users.noreply.github.com>
    qwwdfsad and dkhalanskyjb committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    63877dd View commit details
    Browse the repository at this point in the history
  7. Update kotlinx-coroutines-core/native/src/EventLoop.kt

    Co-authored-by: dkhalanskyjb <52952525+dkhalanskyjb@users.noreply.github.com>
    qwwdfsad and dkhalanskyjb committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    51aa77f View commit details
    Browse the repository at this point in the history
  8. ~batch of small fixes

    qwwdfsad committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    c77e852 View commit details
    Browse the repository at this point in the history
  9. ~remove leftover

    qwwdfsad committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    a6f2d5c View commit details
    Browse the repository at this point in the history
  10. ~cleanup

    qwwdfsad committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    f8e6661 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2021

  1. Update kotlinx-coroutines-core/nativeDarwin/src/Dispatchers.kt

    Co-authored-by: dkhalanskyjb <52952525+dkhalanskyjb@users.noreply.github.com>
    qwwdfsad and dkhalanskyjb committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    2da3434 View commit details
    Browse the repository at this point in the history
  2. Update kotlinx-coroutines-core/concurrent/test/RunBlockingTest.kt

    Co-authored-by: dkhalanskyjb <52952525+dkhalanskyjb@users.noreply.github.com>
    qwwdfsad and dkhalanskyjb committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    ef2f6fc View commit details
    Browse the repository at this point in the history
  3. Update kotlinx-coroutines-core/nativeDarwin/src/Dispatchers.kt

    Co-authored-by: dkhalanskyjb <52952525+dkhalanskyjb@users.noreply.github.com>
    qwwdfsad and dkhalanskyjb committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    3412db3 View commit details
    Browse the repository at this point in the history
  4. ~set of small cleanups

    qwwdfsad committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    6ac83ee View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f005b54 View commit details
    Browse the repository at this point in the history
  6. ~formatting

    qwwdfsad committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    5564b35 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d7e8d79 View commit details
    Browse the repository at this point in the history