emacs-diffs
[Top][All Lists]
Advanced

[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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]