[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] concurrency-libtask 4b160e6 5/6: Remove wrong assertion
From: |
Philipp Stephani |
Subject: |
[Emacs-diffs] concurrency-libtask 4b160e6 5/6: Remove wrong assertion |
Date: |
Tue, 25 Oct 2016 23:25:28 +0000 (UTC) |
branch: concurrency-libtask
commit 4b160e67c340fc4ecdc18f050388db055e8d80c3
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>
Remove wrong assertion
It’s totally fine to free a channel that still buffers something.
---
src/alloc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/alloc.c b/src/alloc.c
index 10b6c20..e999d22 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -6947,7 +6947,6 @@ sweep_misc (void)
{
Channel *channel = mblk->markers[i].m.u_channel.channel;
eassert (channel != NULL);
- eassert (channel->nbuf == 0);
eassert (channel->asend.n == 0);
eassert (channel->arecv.n == 0);
chanfree (channel);
- [Emacs-diffs] branch concurrency-libtask created (now cc11c5a), Philipp Stephani, 2016/10/25
- [Emacs-diffs] concurrency-libtask 4b160e6 5/6: Remove wrong assertion,
Philipp Stephani <=
- [Emacs-diffs] concurrency-libtask 150bbf2 3/6: Support for Windows fibers, Philipp Stephani, 2016/10/25
- [Emacs-diffs] concurrency-libtask cc11c5a 6/6: Transfer signals to main coroutine, Philipp Stephani, 2016/10/25
- [Emacs-diffs] concurrency-libtask b9d1f96 1/6: Clarify the behavior of minor mode commands, Philipp Stephani, 2016/10/25
- [Emacs-diffs] concurrency-libtask c349c4d4 4/6: malloc is redefined by config.h, Philipp Stephani, 2016/10/25
- [Emacs-diffs] concurrency-libtask 133208f 2/6: WIP: CSP based on libtask, Philipp Stephani, 2016/10/25