Skip to content

Commit a20e7b3

Browse files
committed
rebase cleanup
1 parent 8bc76e0 commit a20e7b3

12 files changed

+6
-303
lines changed

lib/AST/Decl.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5212,9 +5212,6 @@ NominalTypeDecl::getExecutorOwnedEnqueueFunction() const {
52125212
if (!isa<ProtocolDecl>(candidate->getDeclContext()))
52135213
continue;
52145214

5215-
fprintf(stderr, "[%s:%d](%s) candidate\n", __FILE_NAME__, __LINE__, __FUNCTION__);
5216-
candidate->dump();
5217-
52185215
if (auto *funcDecl = dyn_cast<AbstractFunctionDecl>(candidate)) {
52195216
if (funcDecl->getParameters()->size() != 1)
52205217
continue;

stdlib/public/BackDeployConcurrency/Actor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,14 +285,12 @@ JobPriority swift::swift_task_getCurrentThreadPriority() {
285285
SWIFT_CC(swift)
286286
static bool swift_task_isCurrentExecutorImpl(ExecutorRef executor) {
287287
if (auto currentTracking = ExecutorTrackingInfo::current()) {
288-
fprintf(stderr, "[%s:%d](%s) current executor = %p, main:%s, default:%s\n", __FILE_NAME__, __LINE__, __FUNCTION__,
289288
currentTracking->getActiveExecutor().getIdentity(),
290289
currentTracking->getActiveExecutor().isMainExecutor() ? "y" : "n",
291290
currentTracking->getActiveExecutor().isDefaultActor() ? "y" : "n");
292291
return currentTracking->getActiveExecutor() == executor;
293292
}
294293

295-
fprintf(stderr, "[%s:%d](%s) no executor found in tracking\n", __FILE_NAME__, __LINE__, __FUNCTION__);
296294
return executor.isMainExecutor() && isExecutingOnMainThread();
297295
}
298296

stdlib/public/BackDeployConcurrency/Executor.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ public struct UnownedSerialExecutor: Sendable {
7474
@_silgen_name("_swift_task_enqueueOnExecutor")
7575
internal func _enqueueOnExecutor<E>(job: UnownedJob, executor: E)
7676
where E: SerialExecutor {
77-
// TODO: something to do here?
7877
executor.enqueue(job)
7978
}
8079

stdlib/public/Concurrency/Actor.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,14 +297,11 @@ JobPriority swift::swift_task_getCurrentThreadPriority() {
297297

298298
SWIFT_CC(swift)
299299
static bool swift_task_isCurrentExecutorImpl(ExecutorRef executor) {
300-
fprintf(stderr, "[%s:%d](%s) check executor:%p isMain:%d\n", __FILE_NAME__, __LINE__, __FUNCTION__, executor, executor.isMainExecutor() ? 1 : 0);
301300
if (auto currentTracking = ExecutorTrackingInfo::current()) {
302-
fprintf(stderr, "[%s:%d](%s) current tracking, active executor:%p\n", __FILE_NAME__, __LINE__, __FUNCTION__, currentTracking->getActiveExecutor());
303301
return currentTracking->getActiveExecutor() == executor;
304302
}
305303

306-
fprintf(stderr, "[%s:%d](%s) executor.isMainExecutor:%d\n", __FILE_NAME__, __LINE__, __FUNCTION__, executor.isMainExecutor() ? 1 : 0);
307-
fprintf(stderr, "[%s:%d](%s) isExecutingOnMainThread():%d\n", __FILE_NAME__, __LINE__, __FUNCTION__, isExecutingOnMainThread() ? 1 : 0);
304+
// TODO(ktoso): checking the "is main thread" is not correct, main executor can be not main thread
308305
return executor.isMainExecutor() && isExecutingOnMainThread();
309306
}
310307

stdlib/public/Concurrency/AssumeActorExecutor.swift

Lines changed: 0 additions & 82 deletions
This file was deleted.

stdlib/public/Concurrency/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ add_swift_target_library(swift_Concurrency ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} I
7979
../CompatibilityOverride/CompatibilityOverride.cpp
8080
Actor.cpp
8181
Actor.swift
82-
AssumeActorExecutor.swift
8382
AsyncLet.cpp
8483
AsyncLet.swift
8584
CheckedContinuation.swift

stdlib/public/Concurrency/Job.swift renamed to stdlib/public/Concurrency/PartialAsyncTask.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import Swift
1414
@_implementationOnly import _SwiftConcurrencyShims
1515

16+
// TODO(swift): rename the file to Job.swift eventually, we don't use PartialTask terminology anymore
17+
1618
@available(SwiftStdlib 5.1, *)
1719
@_silgen_name("swift_job_run")
1820
@usableFromInline

test/Concurrency/Runtime/assert_actor_executor_crash.swift

Lines changed: 0 additions & 32 deletions
This file was deleted.

test/Concurrency/Runtime/assert_actor_executor_main_crash.swift

Lines changed: 0 additions & 48 deletions
This file was deleted.

test/Concurrency/Runtime/assume_actor_executor_asyncmain.swift

Lines changed: 0 additions & 64 deletions
This file was deleted.

test/Concurrency/Runtime/assume_actor_executor_dispatchmain.swift

Lines changed: 0 additions & 66 deletions
This file was deleted.

test/Concurrency/Runtime/custom_executors_distributed.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
// UNSUPPORTED: back_deployment_runtime
88
// REQUIRES: concurrency_runtime
99

10+
// rdar://84054793 - distributed actors don't support custom executors yet
11+
// XFAIL: *
12+
1013
import Distributed
1114

1215
// Not really codable

0 commit comments

Comments
 (0)