C: SSE lcs alignment: band-aid for memory bug I don't understand

(triggered on specific db on ubuntu)
This commit is contained in:
cmercier
2020-04-17 15:07:52 +02:00
parent 8d0b17d87d
commit 4d36538c6e
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
major = 3 major = 3
minor = 0 minor = 0
serial= '0-beta14' serial= '0-beta14a'
version ="%d.%02d.%s" % (major,minor,serial) version ="%d.%02d.%s" % (major,minor,serial)

View File

@ -686,6 +686,9 @@ int calculateSizeToAllocate(int maxLen, int LCSmin)
size *= 3; size *= 3;
size += 16; size += 16;
size += 10; // band-aid for memory bug I don't understand (triggered on specific db on ubuntu)
// bug might have to do with the way different systems behave when aligning the address in obi_get_memory_aligned_on_16
return(size*sizeof(int16_t)); return(size*sizeof(int16_t));
} }