1
0
forked from 0ad/0ad

again raised "infinite loop" warning threshold because it was still being hit, apparently. value is still plausible.

This was SVN commit r3582.
This commit is contained in:
janwas 2006-03-02 07:23:30 +00:00
parent 04b72b29b4
commit 39a9eb19cf

View File

@ -843,11 +843,11 @@ FileIOBuf file_buf_alloc(size_t size, const char* atom_fn, bool long_lived)
free_padded_buf(discarded_buf, size);
// note: this may seem hefty, but 200 is known to be reached.
// note: this may seem hefty, but 300 is known to be reached.
// (after building archive, file cache is full; attempting to
// allocate 2MB while only freeing 100KB blocks scattered over
// allocate ~4MB while only freeing small blocks scattered over
// the entire cache can take a while)
if(attempts++ > 300)
if(attempts++ > 500)
debug_warn("possible infinite loop: failed to make room in cache");
}