From 26689adbd2d787928e5776bcb0131549b7ba51a2 Mon Sep 17 00:00:00 2001 From: Jeremy Manson Date: Thu, 10 Jul 2014 16:26:38 +0200 Subject: [PATCH] 8042778: Getting all visible methods in ReferenceTypeImpl is slow Reviewed-by: egahlin, dholmes --- jdk/src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdk/src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java b/jdk/src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java index ab76a876e6d..88af45d9c96 100644 --- a/jdk/src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java +++ b/jdk/src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java @@ -529,7 +529,7 @@ implements ReferenceType { * to filter that ordered collection. */ List list = allMethods(); - list.retainAll(map.values()); + list.retainAll(new HashSet(map.values())); return list; }