You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed this while looking for another issue. If you do ConcurrentHashMap.entrySet/values/keySet, and then try to call .toArray (weather an array is passed in or not). If the map structure grows after the .size() check in Data.toArray, the iterator will end up getting an extra element than the array that was allocated for it. Thus the out of bounds exception will be thrown when we try to store an element in the array we have not allocated for.
The text was updated successfully, but these errors were encountered:
I noticed this while looking for another issue. If you do ConcurrentHashMap.entrySet/values/keySet, and then try to call .toArray (weather an array is passed in or not). If the map structure grows after the .size() check in Data.toArray, the iterator will end up getting an extra element than the array that was allocated for it. Thus the out of bounds exception will be thrown when we try to store an element in the array we have not allocated for.
The text was updated successfully, but these errors were encountered: