summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-01-05 14:48:40 +0000
committerkib <kib@FreeBSD.org>2016-01-05 14:48:40 +0000
commit8c46f725d5083f7e2c52a22367c441fc217ca7b1 (patch)
treeaaf96e6c5a60abfeb3a231d49e41c8d20208ccf1 /contrib/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
parent07c911dcef090c33c0aa41d22c8edbba95385f20 (diff)
downloadFreeBSD-src-8c46f725d5083f7e2c52a22367c441fc217ca7b1.zip
FreeBSD-src-8c46f725d5083f7e2c52a22367c441fc217ca7b1.tar.gz
Two fixes for excessive iterations after r292326.
Advance the logical block number to the lblkno of the found block plus one, instead of incrementing the block number which was used for lookup. This change skips sparcely populated buffer ranges, similar to r292325, instead of doing useless lookups. Do not restart the bnoreuselist() from the start of the range if buffer lock cannot be obtained without sleep. Only retry lookup and lock for the same queue and same logical block number. Reported by: benno Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 3 days
Diffstat (limited to 'contrib/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud