8042778: Getting all visible methods in ReferenceTypeImpl is slow

Reviewed-by: egahlin, dholmes
This commit is contained in:
Jeremy Manson 2014-07-10 16:26:38 +02:00
parent 47692bbf7e
commit 26689adbd2

View File

@ -529,7 +529,7 @@ implements ReferenceType {
* to filter that ordered collection.
*/
List<Method> list = allMethods();
list.retainAll(map.values());
list.retainAll(new HashSet<Method>(map.values()));
return list;
}