diff options
Diffstat (limited to 'lib/block_allocator.cpp')
-rw-r--r-- | lib/block_allocator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/block_allocator.cpp b/lib/block_allocator.cpp index bd2f3c2..fb00d58 100644 --- a/lib/block_allocator.cpp +++ b/lib/block_allocator.cpp @@ -9,13 +9,14 @@ using namespace gras; const size_t AT_LEAST_BYTES = 32*(1024); //kiB per buffer const size_t AHH_TOO_MANY_BYTES = 32*(1024*1024); //MiB enough for me -const size_t THIS_MANY_BUFFERS = 8; //pool size +const size_t THIS_MANY_BUFFERS = 2; //pool size static void buffer_returner(ThreadPool tp, Theron::Address addr, const size_t index, SBuffer &buffer) { //reset offset and length buffer.offset = 0; buffer.length = 0; + buffer.last = NULL; OutputBufferMessage message; message.index = index; |