rt: Remove arbitrary limit on size of port queue. Closes #1245

This commit is contained in:
Brian Anderson 2012-03-12 13:23:46 -07:00
parent 47bfd4f4e9
commit db79f3c0a5
2 changed files with 0 additions and 2 deletions

View File

@ -139,7 +139,6 @@ circular_buffer::dequeue(void *dst) {
void
circular_buffer::grow() {
size_t new_buffer_sz = _buffer_sz * 2;
I(kernel, new_buffer_sz <= MAX_CIRCULAR_BUFFER_SIZE);
KLOG(kernel, mem, "circular_buffer is growing to %d bytes",
new_buffer_sz);
void *new_buffer = kernel->malloc(new_buffer_sz,

View File

@ -8,7 +8,6 @@
class
circular_buffer : public kernel_owned<circular_buffer> {
static const size_t INITIAL_CIRCULAR_BUFFER_SIZE_IN_UNITS = 8;
static const size_t MAX_CIRCULAR_BUFFER_SIZE = 1 << 24;
public:
rust_kernel *kernel;