logic: apply some shared memory fixes
* corrections in estimating size of intermediate indexer commands * avoided clearing and refilling the indexed files list every time files get added * changed memory growth policy of InterprocessIndexingStatusManager to double allocated memory when it gets full * added potential to grow memory when adding crashed file paths
This commit is contained in:
@@ -27,11 +27,11 @@ IndexerCommandType IndexerCommandJava::getIndexerCommandType() const
|
||||
|
||||
size_t IndexerCommandJava::getByteSize() const
|
||||
{
|
||||
size_t size = IndexerCommand::getByteSize() + sizeof(*this);
|
||||
size_t size = IndexerCommand::getByteSize();
|
||||
|
||||
for (auto i : m_classPath)
|
||||
{
|
||||
size += i.str().size();
|
||||
size += sizeof(std::string) + i.str().size();
|
||||
}
|
||||
|
||||
return size;
|
||||
|
||||
Reference in New Issue
Block a user