Skip to content

Commit 565e9a3

Browse files
committed
---
yaml --- r: 12266 b: refs/heads/master c: 6042aef h: refs/heads/master v: v3
1 parent c99a488 commit 565e9a3

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 128a8b6ed500f74fa802aa9749b3b7a19ebfffc9
2+
refs/heads/master: 6042aefeeb067c8077a9ae4245c8aeef89489103
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rt/circular_buffer.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ circular_buffer::circular_buffer(rust_kernel *kernel, size_t unit_sz) :
2424
circular_buffer::~circular_buffer() {
2525
KLOG(kernel, mem, "~circular_buffer 0x%" PRIxPTR, this);
2626
assert(_buffer);
27-
if (_unread != 0) {
28-
fprintf(stderr, "warning: freeing circular_buffer with"
29-
" %lu unread bytes", _unread);
30-
fflush(stderr);
31-
}
27+
assert(_unread != 0 && "didn't expect bytes in the circular buffer");
3228

3329
kernel->free(_buffer);
3430
}

0 commit comments

Comments
 (0)