changeset 10284:70f581e8812a

8042778: Getting all visible methods in ReferenceTypeImpl is slow Reviewed-by: egahlin, dholmes
author jmanson
date Thu, 10 Jul 2014 16:26:38 +0200
parents 9febf9dbc0a4
children 667926cb70ff
files src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java	Sun Jul 13 15:24:03 2014 +0100
+++ b/src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java	Thu Jul 10 16:26:38 2014 +0200
@@ -529,7 +529,7 @@
          * to filter that ordered collection.
          */
         List<Method> list = allMethods();
-        list.retainAll(map.values());
+        list.retainAll(new HashSet<Method>(map.values()));
         return list;
     }