diff options
author | Josh Blum | 2012-10-04 21:15:11 -0700 |
---|---|---|
committer | Josh Blum | 2012-10-04 21:15:11 -0700 |
commit | 709f8e97cc642e446d357612a6d6512d5a4c5330 (patch) | |
tree | 203a53e63fca96fe9e9a72d3fe386102d817b8d2 /lib/block_allocator.cpp | |
parent | 3600e927bf31ca46bb99ef2df83512112fa6a8b2 (diff) | |
download | sandhi-709f8e97cc642e446d357612a6d6512d5a4c5330.tar.gz sandhi-709f8e97cc642e446d357612a6d6512d5a4c5330.tar.bz2 sandhi-709f8e97cc642e446d357612a6d6512d5a4c5330.zip |
implementation for the top block global config
Diffstat (limited to 'lib/block_allocator.cpp')
-rw-r--r-- | lib/block_allocator.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/block_allocator.cpp b/lib/block_allocator.cpp index 2161eb9..9b70824 100644 --- a/lib/block_allocator.cpp +++ b/lib/block_allocator.cpp @@ -89,12 +89,9 @@ void BlockActor::handle_top_alloc(const TopAllocMessage &, const Theron::Address this->output_buffer_tokens.resize(num_outputs); for (size_t i = 0; i < num_outputs; i++) { - size_t hint_items = this->hint; - if (hint_items == 0) hint_items = AT_LEAST_DEFAULT_ITEMS; - const size_t bytes = recommend_length( this->output_allocation_hints[i], - hint_items*this->output_items_sizes[i], + AT_LEAST_DEFAULT_ITEMS*this->output_items_sizes[i], this->output_configs[i].reserve_items*this->output_items_sizes[i], this->output_configs[i].maximum_items*this->output_items_sizes[i] ); |