提交 3b2bd90e 编写于 作者: A aeriksso

8074696: Remote debugging session hangs for several minutes when calling findBootType

Reviewed-by: sspitsyn, jbachorik
上级 4955641f
/* /*
* Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -1041,12 +1041,11 @@ class VirtualMachineImpl extends MirrorImpl ...@@ -1041,12 +1041,11 @@ class VirtualMachineImpl extends MirrorImpl
} }
Type findBootType(String signature) throws ClassNotLoadedException { Type findBootType(String signature) throws ClassNotLoadedException {
List<ReferenceType> types = allClasses(); List<ReferenceType> types = retrieveClassesBySignature(signature);
Iterator<ReferenceType> iter = types.iterator(); Iterator<ReferenceType> iter = types.iterator();
while (iter.hasNext()) { while (iter.hasNext()) {
ReferenceType type = iter.next(); ReferenceType type = iter.next();
if ((type.classLoader() == null) && if (type.classLoader() == null) {
(type.signature().equals(signature))) {
return type; return type;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册