elasticsearch/elasticsearch — pull request #4928 by s1monw (2014-01-28 13:01:02+00:00)
Title: Use num of actual threads if busiestThreads is larger

We currently use the number of hot threads that we are
interested in as the value for iterating over the actual
hot threads which can lead to AIOOB is the actual number
of threads is less than the given number.

Closes #4927