Skip to content

Commit d43e61d

Browse files
committed
cleanups
1 parent b99b37a commit d43e61d

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

include/swift/ABI/TaskLocal.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ class TaskLocal {
126126
}
127127

128128
void relinkNext(Item* nextOverride) {
129-
fprintf(stderr, "[%s:%d](%s) this item = %p\n", __FILE_NAME__, __LINE__, __FUNCTION__, this);
130-
fprintf(stderr, "[%s:%d](%s) NEXT = %p\n", __FILE_NAME__, __LINE__, __FUNCTION__, getNext());
131-
fprintf(stderr, "[%s:%d](%s) storage = %p\n", __FILE_NAME__, __LINE__, __FUNCTION__, getStoragePtr());
132-
fprintf(stderr, "[%s:%d](%s) next kind = %d\n", __FILE_NAME__, __LINE__, __FUNCTION__, getNextLinkType());
133129
assert(!getNext() &&
134130
"Can only relink task local item that was not pointing at anything yet");
135131
assert(nextOverride->isNextLinkPointer() ||

stdlib/public/Concurrency/TaskLocal.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,15 +384,13 @@ void TaskLocal::Storage::destroy(AsyncTask *task) {
384384
auto linkType = item->getNextLinkType();
385385
switch (linkType) {
386386
case TaskLocal::NextLinkType::IsNextCreatedInTaskGroupBody: {
387-
fprintf(stderr, "[%s:%d](%s) MARK in group destroy %p\n", __FILE_NAME__, __LINE__, __FUNCTION__, item);
388387
next = item->getNext();
389388
item->destroy(task);
390389
previousWasIsNextCreatedInTaskGroupBody = true;
391390
item = next;
392391
break;
393392
}
394393
case TaskLocal::NextLinkType::IsNext:
395-
fprintf(stderr, "[%s:%d](%s) destroy %p\n", __FILE_NAME__, __LINE__, __FUNCTION__, item);
396394
next = item->getNext();
397395
if (!previousWasIsNextCreatedInTaskGroupBody) {
398396
item->destroy(task);

stdlib/public/runtime/StackAllocator.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,6 @@ class StackAllocator {
327327
/// Deallocate memory \p ptr.
328328
void dealloc(void *ptr) {
329329
if (!lastAllocation || lastAllocation->getAllocatedMemory() != ptr) {
330-
fprintf(stderr, "[%s:%d](%s) trying to free %p\n", __FILE_NAME__, __LINE__, __FUNCTION__, ptr);
331330
SWIFT_FATAL_ERROR(0, "freed pointer was not the last allocation");
332331
}
333332

0 commit comments

Comments
 (0)