Skip to content

Commit db79f3c

Browse files
committed
rt: Remove arbitrary limit on size of port queue. Closes #1245
1 parent 47bfd4f commit db79f3c

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/rt/circular_buffer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ circular_buffer::dequeue(void *dst) {
139139
void
140140
circular_buffer::grow() {
141141
size_t new_buffer_sz = _buffer_sz * 2;
142-
I(kernel, new_buffer_sz <= MAX_CIRCULAR_BUFFER_SIZE);
143142
KLOG(kernel, mem, "circular_buffer is growing to %d bytes",
144143
new_buffer_sz);
145144
void *new_buffer = kernel->malloc(new_buffer_sz,

src/rt/circular_buffer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
class
99
circular_buffer : public kernel_owned<circular_buffer> {
1010
static const size_t INITIAL_CIRCULAR_BUFFER_SIZE_IN_UNITS = 8;
11-
static const size_t MAX_CIRCULAR_BUFFER_SIZE = 1 << 24;
1211

1312
public:
1413
rust_kernel *kernel;

0 commit comments

Comments
 (0)