8285366: Fix typos in serviceability
Reviewed-by: kevinw, sspitsyn
This commit is contained in:
parent
f631c9884f
commit
76caeed498
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -98,7 +98,7 @@ public class RMIJRMPServerImpl extends RMIServerImpl {
|
||||
this.env = (env == null) ? Collections.<String, Object>emptyMap() : env;
|
||||
|
||||
// This attribute was represented by RMIConnectorServer.CREDENTIALS_TYPES.
|
||||
// This attribute is superceded by
|
||||
// This attribute is superseded by
|
||||
// RMIConnectorServer.CREDENTIALS_FILTER_PATTERN.
|
||||
// Retaining this for backward compatibility.
|
||||
String[] credentialsTypes
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -414,7 +414,7 @@ public abstract class RMIServerImpl implements Closeable, RMIServer {
|
||||
// Loop to close all clients
|
||||
while (true) {
|
||||
synchronized (clientList) {
|
||||
if (debug) logger.debug("close","droping dead references");
|
||||
if (debug) logger.debug("close","dropping dead references");
|
||||
dropDeadReferences();
|
||||
|
||||
if (debug) logger.debug("close","client count: "+clientList.size());
|
||||
|
@ -1040,21 +1040,21 @@ public class DefaultMBeanServerInterceptor implements MBeanServerInterceptor {
|
||||
} catch (RuntimeException e) {
|
||||
MBEANSERVER_LOGGER.log(Level.DEBUG, "While unregistering MBean ["+mbean+
|
||||
"]: " + "Exception thrown by postDeregister: " +
|
||||
"rethrowing <"+e+">, although the MBean is succesfully " +
|
||||
"rethrowing <"+e+">, although the MBean is successfully " +
|
||||
"unregistered");
|
||||
throw new RuntimeMBeanException(e,
|
||||
"RuntimeException thrown in postDeregister method: "+
|
||||
"rethrowing <"+e+
|
||||
">, although the MBean is sucessfully unregistered");
|
||||
">, although the MBean is successfully unregistered");
|
||||
} catch (Error er) {
|
||||
MBEANSERVER_LOGGER.log(Level.DEBUG, "While unregistering MBean ["+mbean+
|
||||
"]: " + "Error thrown by postDeregister: " +
|
||||
"rethrowing <"+er+">, although the MBean is succesfully " +
|
||||
"rethrowing <"+er+">, although the MBean is successfully " +
|
||||
"unregistered");
|
||||
throw new RuntimeErrorException(er,
|
||||
"Error thrown in postDeregister method: "+
|
||||
"rethrowing <"+er+
|
||||
">, although the MBean is sucessfully unregistered");
|
||||
">, although the MBean is successfully unregistered");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -1429,7 +1429,7 @@ public final class JmxMBeanServer
|
||||
|
||||
// This constructor happens to disregard the value of the interceptors
|
||||
// flag - that is, it always uses the default value - false.
|
||||
// This is admitedly a bug, but we chose not to fix it for now
|
||||
// This is admittedly a bug, but we chose not to fix it for now
|
||||
// since we would rather not have anybody depending on the Sun private
|
||||
// interceptor APIs - which is most probably going to be removed and
|
||||
// replaced by a public (javax) feature in the future.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -94,7 +94,7 @@ import sun.reflect.misc.ReflectUtil;
|
||||
* MBean Server will always have the same interface here.)
|
||||
*
|
||||
* The MBeanInfo in this second cache will be the MBeanInfo from the
|
||||
* PerInterface cache for the given itnerface, but with the
|
||||
* PerInterface cache for the given interface, but with the
|
||||
* getClassName() having the concrete class's name, and the public
|
||||
* constructors based on the concrete class's constructors. This
|
||||
* MBeanInfo can be shared between all instances of the concrete class
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -98,7 +98,7 @@ public class Repository {
|
||||
/**
|
||||
* We use a global reentrant read write lock to protect the repository.
|
||||
* This seems safer and more efficient: we are using Maps of Maps,
|
||||
* Guaranteing consistency while using Concurent objects at each level
|
||||
* Guaranteing consistency while using Concurrent objects at each level
|
||||
* may be more difficult.
|
||||
**/
|
||||
private final ReentrantReadWriteLock lock;
|
||||
@ -377,7 +377,7 @@ public class Repository {
|
||||
* can be stored in the repository with that {@code name}.
|
||||
* If {@link RegistrationContext#registering()
|
||||
* context.registering()} throws an exception, the
|
||||
* operation is abandonned, the MBean is not added to the
|
||||
* operation is abandoned, the MBean is not added to the
|
||||
* repository, and a {@link RuntimeOperationsException}
|
||||
* is thrown.
|
||||
*/
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -437,7 +437,7 @@ public class ArrayNotificationBuffer implements NotificationBuffer {
|
||||
if (isDisposed()) {
|
||||
if (logger.debugOn())
|
||||
logger.debug("fetchNotifications",
|
||||
"dispose callled, no wait");
|
||||
"dispose called, no wait");
|
||||
return new NotificationResult(earliestSequenceNumber(),
|
||||
nextSequenceNumber(),
|
||||
new TargetedNotification[0]);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -169,7 +169,7 @@ public abstract class ClientCommunicatorAdmin {
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// private varaibles
|
||||
// private variables
|
||||
// --------------------------------------------------------------
|
||||
private class Checker implements Runnable {
|
||||
public void run() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -304,7 +304,7 @@ public abstract class ClientNotifForwarder {
|
||||
* and the thread used to fetch notifis will be stopped, a new thread can be
|
||||
* created only after the method <code>postReconnection</code> is called.
|
||||
*
|
||||
* It is caller's responsiblity to not re-call this method before calling
|
||||
* It is caller's responsibility to not re-call this method before calling
|
||||
* <code>postReconnection</code>.
|
||||
*/
|
||||
public synchronized ClientListenerInfo[] preReconnection() throws IOException {
|
||||
@ -561,7 +561,7 @@ public abstract class ClientNotifForwarder {
|
||||
if (nr == null) {
|
||||
if (logger.traceOn()) {
|
||||
logger.trace("NotifFetcher-run",
|
||||
"Recieved null object as notifs, stops fetching because the "
|
||||
"Received null object as notifs, stops fetching because the "
|
||||
+ "notification server is terminated.");
|
||||
}
|
||||
}
|
||||
@ -792,7 +792,7 @@ public abstract class ClientNotifForwarder {
|
||||
|
||||
/*
|
||||
* Called to decide whether need to start a thread for fetching notifs.
|
||||
* <P>The parameter reconnected will decide whether to initilize the clientSequenceNumber,
|
||||
* <P>The parameter reconnected will decide whether to initialize the clientSequenceNumber,
|
||||
* initilaizing the clientSequenceNumber means to ignore all notifications arrived before.
|
||||
* If it is reconnected, we will not initialize in order to get all notifications arrived
|
||||
* during the reconnection. It may cause the newly registered listeners to receive some
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -276,7 +276,7 @@ public final class HashedPasswordManager {
|
||||
hasClearPasswords.set(true);
|
||||
if (logger.debugOn()) {
|
||||
logger.debug("loadPasswords",
|
||||
"Found atleast one clear password");
|
||||
"Found at least one clear password");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -267,7 +267,7 @@ public class EnvHelp {
|
||||
public static int getNotifBufferSize(Map<String, ?> env) {
|
||||
int defaultQueueSize = 1000; // default value
|
||||
|
||||
// keep it for the compability for the fix:
|
||||
// keep it for the compatibility for the fix:
|
||||
// 6174229: Environment parameter should be notification.buffer.size
|
||||
// instead of buffer.size
|
||||
final String oldP = "jmx.remote.x.buffer.size";
|
||||
|
@ -632,7 +632,7 @@ public class ManagementFactory {
|
||||
// using newPlatformMXBeanProxy(mbs, on, LoggingMXBean.class)
|
||||
// even though the underlying MXBean no longer implements
|
||||
// java.util.logging.LoggingMXBean.
|
||||
// Altough java.util.logging.LoggingMXBean is deprecated, an application
|
||||
// Although java.util.logging.LoggingMXBean is deprecated, an application
|
||||
// that uses newPlatformMXBeanProxy(mbs, on, LoggingMXBean.class) will
|
||||
// continue to work.
|
||||
//
|
||||
|
@ -333,7 +333,7 @@ public class ThreadInfo {
|
||||
*
|
||||
* <p>The Java virtual machine may measure the time with a high
|
||||
* resolution timer. This statistic is reset when
|
||||
* the thread contention monitoring is reenabled.
|
||||
* the thread contention monitoring is re-enabled.
|
||||
*
|
||||
* @return the approximate accumulated elapsed time in milliseconds
|
||||
* that a thread entered the {@code BLOCKED} state;
|
||||
@ -377,7 +377,7 @@ public class ThreadInfo {
|
||||
*
|
||||
* <p>The Java virtual machine may measure the time with a high
|
||||
* resolution timer. This statistic is reset when
|
||||
* the thread contention monitoring is reenabled.
|
||||
* the thread contention monitoring is re-enabled.
|
||||
*
|
||||
* @return the approximate accumulated elapsed time in milliseconds
|
||||
* that a thread has been in the {@code WAITING} or
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -132,7 +132,7 @@ public class AttributeValueExp implements ValueExp {
|
||||
* obtain an attribute value is {@link QueryEval#getMBeanServer()}.
|
||||
*/
|
||||
/* There is no need for this method, because if a query is being
|
||||
evaluted an AttributeValueExp can only appear inside a QueryExp,
|
||||
evaluated an AttributeValueExp can only appear inside a QueryExp,
|
||||
and that QueryExp will itself have done setMBeanServer. */
|
||||
@Deprecated
|
||||
@Override
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -49,7 +49,7 @@ import com.sun.jmx.remote.util.ClassLogger;
|
||||
* <p>If the method call of a filter or listener throws an {@link Exception},
|
||||
* then that exception does not prevent other listeners from being invoked. However,
|
||||
* if the method call of a filter or of {@code Executor.execute} or of
|
||||
* {@code handleNotification} (when no {@code Excecutor} is specified) throws an
|
||||
* {@code handleNotification} (when no {@code Executor} is specified) throws an
|
||||
* {@link Error}, then that {@code Error} is propagated to the caller of
|
||||
* {@link #sendNotification sendNotification}.</p>
|
||||
*
|
||||
|
@ -2325,7 +2325,7 @@ public class RequiredModelMBean
|
||||
(ModelMBeanNotificationInfo[])modelMBeanInfo.getNotifications();
|
||||
|
||||
// Length of the returned list of notification infos:
|
||||
// length of user suplied list + possibly 1 for GENERIC, +
|
||||
// length of user supplied list + possibly 1 for GENERIC, +
|
||||
// possibly 1 for ATTRIBUTE_CHANGE
|
||||
// (bug 4744667)
|
||||
final int len = ((currInfo==null?0:currInfo.length) +
|
||||
|
@ -141,7 +141,7 @@ public class ArrayType<T> extends OpenType<T> {
|
||||
private transient Integer myHashCode = null; // As this instance is immutable, these two values
|
||||
private transient String myToString = null; // need only be calculated once.
|
||||
|
||||
// indexes refering to columns in the PRIMITIVE_ARRAY_TYPES table.
|
||||
// indexes referring to columns in the PRIMITIVE_ARRAY_TYPES table.
|
||||
private static final int PRIMITIVE_WRAPPER_NAME_INDEX = 0;
|
||||
private static final int PRIMITIVE_TYPE_NAME_INDEX = 1;
|
||||
private static final int PRIMITIVE_TYPE_KEY_INDEX = 2;
|
||||
@ -666,7 +666,7 @@ public class ArrayType<T> extends OpenType<T> {
|
||||
}
|
||||
|
||||
|
||||
/* *** Methods overriden from class Object *** */
|
||||
/* *** Methods overridden from class Object *** */
|
||||
|
||||
/**
|
||||
* Compares the specified {@code obj} parameter with this
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -164,7 +164,7 @@ public class CompositeDataInvocationHandler implements InvocationHandler {
|
||||
return equals(proxy, args[0]);
|
||||
else {
|
||||
/* Either someone is calling invoke by hand, or
|
||||
it is a non-final method from Object overriden
|
||||
it is a non-final method from Object overridden
|
||||
by the generated Proxy. At the time of writing,
|
||||
the only non-final methods in Object that are not
|
||||
handled above are finalize and clone, and these
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -346,7 +346,7 @@ public class CompositeType extends OpenType<CompositeData> {
|
||||
}
|
||||
|
||||
|
||||
/* *** Methods overriden from class Object *** */
|
||||
/* *** Methods overridden from class Object *** */
|
||||
|
||||
/**
|
||||
* Compares the specified <code>obj</code> parameter with this <code>CompositeType</code> instance for equality.
|
||||
@ -392,7 +392,7 @@ public class CompositeType extends OpenType<CompositeData> {
|
||||
return false;
|
||||
}
|
||||
|
||||
// All tests for equality were successfull
|
||||
// All tests for equality were successful
|
||||
//
|
||||
return true;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -207,7 +207,7 @@ public class OpenMBeanConstructorInfoSupport
|
||||
return false;
|
||||
}
|
||||
|
||||
// All tests for equality were successfull
|
||||
// All tests for equality were successful
|
||||
//
|
||||
return true;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -305,7 +305,7 @@ public class OpenMBeanOperationInfoSupport
|
||||
return false;
|
||||
}
|
||||
|
||||
// All tests for equality were successfull
|
||||
// All tests for equality were successful
|
||||
//
|
||||
return true;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -369,7 +369,7 @@ public abstract class OpenType<T> implements Serializable {
|
||||
return this.equals(ot);
|
||||
}
|
||||
|
||||
/* *** Methods overriden from class Object *** */
|
||||
/* *** Methods overridden from class Object *** */
|
||||
|
||||
/**
|
||||
* Compares the specified <code>obj</code> parameter with this
|
||||
|
@ -214,7 +214,7 @@ public final class SimpleType<T> extends OpenType<T> {
|
||||
}
|
||||
|
||||
|
||||
/* *** Methods overriden from class Object *** */
|
||||
/* *** Methods overridden from class Object *** */
|
||||
|
||||
/**
|
||||
* Compares the specified <code>obj</code> parameter with this <code>SimpleType</code> instance for equality.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -742,7 +742,7 @@ public class TabularDataSupport
|
||||
}
|
||||
}
|
||||
|
||||
// All tests for equality were successfull
|
||||
// All tests for equality were successful
|
||||
//
|
||||
return true;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -249,7 +249,7 @@ public class TabularType extends OpenType<TabularData> {
|
||||
}
|
||||
|
||||
|
||||
/* *** Methods overriden from class Object *** */
|
||||
/* *** Methods overridden from class Object *** */
|
||||
|
||||
/**
|
||||
* Compares the specified <code>obj</code> parameter with this <code>TabularType</code> instance for equality.
|
||||
@ -301,7 +301,7 @@ public class TabularType extends OpenType<TabularData> {
|
||||
return false;
|
||||
}
|
||||
|
||||
// All tests for equality were successfull
|
||||
// All tests for equality were successful
|
||||
//
|
||||
return true;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -575,7 +575,7 @@ public class RelationNotification extends Notification {
|
||||
throw new InvalidObjectException("Invalid object read");
|
||||
}
|
||||
|
||||
// assign deserialized vaules to object fields
|
||||
// assign deserialized values to object fields
|
||||
relationObjName = safeGetObjectName(tmpRelationObjName);
|
||||
newRoleValue = safeGetObjectNameList(tmpNewRoleValue);
|
||||
oldRoleValue = safeGetObjectNameList(tmpOldRoleValue);
|
||||
|
@ -1680,7 +1680,7 @@ public class RelationService extends NotificationBroadcasterSupport
|
||||
mbeanName, relationTypeName, roleName);
|
||||
|
||||
// Retrieves the map <relation id> -> <role names> for those
|
||||
// criterias
|
||||
// criteria
|
||||
Map<String,List<String>> relId2RoleNamesMap =
|
||||
findReferencingRelations(mbeanName,
|
||||
relationTypeName,
|
||||
@ -2877,7 +2877,7 @@ public class RelationService extends NotificationBroadcasterSupport
|
||||
// -param roleList role list to initialize roles of the relation
|
||||
// (can be null)
|
||||
//
|
||||
// -exception IllegalArgumentException if null paramater
|
||||
// -exception IllegalArgumentException if null parameter
|
||||
// -exception RelationServiceNotRegisteredException if the Relation
|
||||
// Service is not registered in the MBean Server
|
||||
// -exception RoleNotFoundException if a value is provided for a role
|
||||
@ -3000,7 +3000,7 @@ public class RelationService extends NotificationBroadcasterSupport
|
||||
relationTypeName,
|
||||
roleInfoList);
|
||||
|
||||
// Creation of relation successfull!!!!
|
||||
// Creation of relation successful!!!!
|
||||
|
||||
// Updates internal maps
|
||||
// Relation id to object map
|
||||
@ -3202,7 +3202,7 @@ public class RelationService extends NotificationBroadcasterSupport
|
||||
// in the Relation Service)
|
||||
// -param roleInfoList list of role infos for roles to be defaulted
|
||||
//
|
||||
// -exception IllegalArgumentException if null paramater
|
||||
// -exception IllegalArgumentException if null parameter
|
||||
// -exception RelationServiceNotRegisteredException if the Relation
|
||||
// Service is not registered in the MBean Server
|
||||
// -exception InvalidRoleValueException if role must have a non-empty
|
||||
|
@ -802,7 +802,7 @@ public class RelationSupport
|
||||
signature[0] = "java.lang.String";
|
||||
signature[1] = "java.lang.String";
|
||||
// Can throw InstanceNotFoundException if the Relation
|
||||
// Service is not registered (to be catched in any case and
|
||||
// Service is not registered (to be caught in any case and
|
||||
// transformed into RelationServiceNotRegisteredException).
|
||||
//
|
||||
// Shall not throw a MBeanException, or a ReflectionException
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -623,7 +623,7 @@ public abstract class MappedMXBeanType {
|
||||
});
|
||||
} catch (PrivilegedActionException e) {
|
||||
// ignore NoSuchMethodException since we allow classes
|
||||
// that has no from method to be embeded in another class.
|
||||
// that has no from method to be embedded in another class.
|
||||
}
|
||||
|
||||
if (COMPOSITE_DATA_CLASS.isAssignableFrom(c)) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -666,7 +666,7 @@ public abstract class VirtualMachine {
|
||||
|
||||
/**
|
||||
* Returns a hash-code value for this VirtualMachine. The hash
|
||||
* code is based upon the VirtualMachine's components, and satifies
|
||||
* code is based upon the VirtualMachine's components, and satisfies
|
||||
* the general contract of the {@link java.lang.Object#hashCode()
|
||||
* Object.hashCode} method.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -142,7 +142,7 @@ public class VirtualMachineDescriptor {
|
||||
|
||||
/**
|
||||
* Returns a hash-code value for this VirtualMachineDescriptor. The hash
|
||||
* code is based upon the descriptor's components, and satifies
|
||||
* code is based upon the descriptor's components, and satisfies
|
||||
* the general contract of the {@link java.lang.Object#hashCode()
|
||||
* Object.hashCode} method.
|
||||
*
|
||||
|
@ -24,7 +24,7 @@ files in debugger machine.
|
||||
<h3>Solaris transported core dumps</h3>
|
||||
|
||||
<p>
|
||||
Debuggers on Solaris (and Linux) use two addtional shared objects
|
||||
Debuggers on Solaris (and Linux) use two additional shared objects
|
||||
<b>rtld_db.so</b> and <b>libthread_db.so</b>. rtld_db.so is used to
|
||||
read information on shared objects from the core dump. libthread_db.so
|
||||
is used to get information on threads from the core dump. rtld_db.so
|
||||
@ -43,7 +43,7 @@ Solaris Linkers and Libraries Guide - 817-1984</a>
|
||||
With transported core dumps, you may get "rtld_db failures" or
|
||||
"libthread_db failures" or SA may just throw some other error
|
||||
(hotspot symbol is missing) when opening the core dump.
|
||||
Enviroment variable <b>LIBSAPROC_DEBUG</b> may be set to any value
|
||||
Environment variable <b>LIBSAPROC_DEBUG</b> may be set to any value
|
||||
to debug such scenarios. With this env. var set, SA prints many
|
||||
messages in standard error which can be useful for further debugging.
|
||||
SA on Solaris uses <b>libproc.so</b> library. This library also
|
||||
|
@ -425,7 +425,7 @@ JNIEXPORT jlongArray JNICALL Java_sun_jvm_hotspot_debugger_linux_LinuxDebuggerLo
|
||||
|
||||
struct ps_prochandle* ph = get_proc_handle(env, this_obj);
|
||||
if (get_lwp_regs(ph, lwp_id, &gregs) != true) {
|
||||
// This is not considered fatal and does happen on occassion, usually with an
|
||||
// This is not considered fatal and does happen on occasion, usually with an
|
||||
// ESRCH error. The root cause is not fully understood, but by ignoring this error
|
||||
// and returning NULL, stacking walking code will get null registers and fallback
|
||||
// to using the "last java frame" if setup.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -68,7 +68,7 @@ typedef struct map_info {
|
||||
off_t offset; // file offset of this mapping
|
||||
uintptr_t vaddr; // starting virtual address
|
||||
size_t memsz; // size of the mapping
|
||||
uint32_t flags; // acces flags
|
||||
uint32_t flags; // access flags
|
||||
struct map_info* next;
|
||||
} map_info;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2021, Azul Systems, Inc. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
@ -545,7 +545,7 @@ static bool get_real_path(struct ps_prochandle* ph, char *rpath) {
|
||||
|
||||
// Look for bin directory in path. This is useful when attaching to a core file
|
||||
// that was launched with a JDK tool other than "java".
|
||||
posbin = rstrstr(execname, "/bin/"); // look for the last occurence of "/bin/"
|
||||
posbin = rstrstr(execname, "/bin/"); // look for the last occurrence of "/bin/"
|
||||
if (posbin != NULL) {
|
||||
strncpy(jdk_dir, execname, posbin - execname);
|
||||
jdk_dir[posbin - execname] = '\0';
|
||||
@ -624,7 +624,7 @@ static bool read_shared_lib_info(struct ps_prochandle* ph) {
|
||||
continue;
|
||||
}
|
||||
lseek(fd, -sizeof(uint32_t), SEEK_CUR);
|
||||
// This is the begining of the mach-o file in the segment.
|
||||
// This is the beginning of the mach-o file in the segment.
|
||||
if (read(fd, (void *)&header, sizeof(mach_header_64)) != sizeof(mach_header_64)) {
|
||||
goto err;
|
||||
}
|
||||
@ -641,7 +641,7 @@ static bool read_shared_lib_info(struct ps_prochandle* ph) {
|
||||
fpos += lcmd.cmdsize; // next command position
|
||||
// make sure still within seg size.
|
||||
if (fpos - lcmd.cmdsize - iter->offset > iter->memsz) {
|
||||
print_debug("Warning: out of segement limit: %ld \n", fpos - lcmd.cmdsize - iter->offset);
|
||||
print_debug("Warning: out of segment limit: %ld \n", fpos - lcmd.cmdsize - iter->offset);
|
||||
break; // no need to iterate all commands
|
||||
}
|
||||
if (lcmd.cmd == LC_ID_DYLIB) {
|
||||
@ -705,7 +705,7 @@ struct ps_prochandle* Pgrab_core(const char* exec_file, const char* core_file) {
|
||||
|
||||
struct ps_prochandle* ph = (struct ps_prochandle*) calloc(1, sizeof(struct ps_prochandle));
|
||||
if (ph == NULL) {
|
||||
print_debug("cant allocate ps_prochandle\n");
|
||||
print_debug("can't allocate ps_prochandle\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -42,8 +42,8 @@ public class OkAction extends DelegateAction
|
||||
{
|
||||
super("OK", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "ok-command");
|
||||
putValue("ShortDescription", "Acknowleges the action");
|
||||
putValue("LongDescription", "Acknowleges the action");
|
||||
putValue("ShortDescription", "Acknowledges the action");
|
||||
putValue("LongDescription", "Acknowledges the action");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
@ -54,7 +54,7 @@ public class OkAction extends DelegateAction
|
||||
public static final String VALUE_LARGE_ICON = null;
|
||||
public static final Integer VALUE_MNEMONIC = 79;
|
||||
public static final KeyStroke VALUE_ACCELERATOR = null;
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Acknowleges the action";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Acknowleges the action";
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Acknowledges the action";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Acknowledges the action";
|
||||
|
||||
}
|
||||
|
@ -688,7 +688,7 @@ public class CommandProcessor {
|
||||
}
|
||||
}
|
||||
},
|
||||
// "whatis" is just an alias for "findpc". It's kept around for compatiblity reasons.
|
||||
// "whatis" is just an alias for "findpc". It's kept around for compatibility reasons.
|
||||
new Command("whatis", "whatis address", false) {
|
||||
public void doit(Tokens t) {
|
||||
if (t.countTokens() != 1) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -95,7 +95,7 @@ public class DebugServer {
|
||||
break;
|
||||
|
||||
default:
|
||||
// should not happend, taken care already.
|
||||
// should not happen, taken care already.
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -265,7 +265,7 @@ public class HotSpotAgent {
|
||||
/** This opens a core file on the local machine and starts a debug
|
||||
server, allowing remote machines to connect and examine this
|
||||
core file. Uses supplied uniqueID to uniquely identify a specific
|
||||
debugee */
|
||||
debuggee */
|
||||
public synchronized void startServer(String javaExecutableName,
|
||||
String coreFileName,
|
||||
String serverID,
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -138,7 +138,7 @@ public class Disassembler {
|
||||
}
|
||||
|
||||
// This is called from the native code to process various markers
|
||||
// in the dissassembly.
|
||||
// in the disassembly.
|
||||
private long handleEvent(InstructionVisitor visitor, String event, long arg) {
|
||||
if (match(event, "insn")) {
|
||||
try {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -48,7 +48,7 @@ public class ScopeDesc {
|
||||
private int localsDecodeOffset;
|
||||
private int expressionsDecodeOffset;
|
||||
private int monitorsDecodeOffset;
|
||||
/** Scalar replaced bjects pool */
|
||||
/** Scalar replaced objects pool */
|
||||
private List<ObjectValue> objects;
|
||||
|
||||
private ScopeDesc(NMethod code, int decodeOffset, List<ObjectValue> objects, boolean reexecute) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2002, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@ package sun.jvm.hotspot.debugger;
|
||||
size and number of pages. It is configured with a PageFetcher
|
||||
which enables it to transparently satisfy requests which span
|
||||
multiple pages when one or more of those pages is not in the
|
||||
cache. It is generic enough to be sharable among debugger
|
||||
cache. It is generic enough to be shareable among debugger
|
||||
implementations. */
|
||||
|
||||
import sun.jvm.hotspot.utilities.*;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@ public interface ELFHashTable {
|
||||
/**
|
||||
* Returns the ELFSymbol that has the specified name or null if no symbol
|
||||
* with that name exists. NOTE: Currently this method does not work and
|
||||
* willl always return null.
|
||||
* will always return null.
|
||||
*/
|
||||
public ELFSymbol getSymbol(String symbolName);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,7 +25,7 @@
|
||||
package sun.jvm.hotspot.debugger.posix.elf;
|
||||
|
||||
/**
|
||||
* This is the interface definintion for a ProgramHeader in an ELF file.
|
||||
* This is the interface definition for a ProgramHeader in an ELF file.
|
||||
* Program headers contain system information necessary for preparing a program
|
||||
* for execution.
|
||||
*/
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,10 +34,10 @@ public interface ELFSymbol {
|
||||
/** Binding secifying that the symbol resembles a global symbol, but has
|
||||
* a lower precedence. */
|
||||
public static final int BINDING_WEAK = 2;
|
||||
/** Lower bound binding values reserverd for processor specific
|
||||
/** Lower bound binding values reserved for processor specific
|
||||
* semantics. */
|
||||
public static final int BINDING_LOPROC = 13;
|
||||
/** Upper bound binding values reserverd for processor specific
|
||||
/** Upper bound binding values reserved for processor specific
|
||||
* semantics. */
|
||||
public static final int BINDING_HIPROC = 15;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -33,7 +33,7 @@ import sun.jvm.hotspot.utilities.*;
|
||||
import sun.jvm.hotspot.utilities.Observable;
|
||||
import sun.jvm.hotspot.utilities.Observer;
|
||||
|
||||
/** A very simple data structure representing a contigous region of
|
||||
/** A very simple data structure representing a contiguous region of
|
||||
address space. */
|
||||
|
||||
public class MemRegion implements Cloneable {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -631,7 +631,7 @@ public class ConstantPool extends Metadata implements ClassConstants {
|
||||
|
||||
case JVM_CONSTANT_Class: {
|
||||
dos.writeByte(cpConstType);
|
||||
// Klass already resolved. ConstantPool constains Klass*.
|
||||
// Klass already resolved. ConstantPool contains Klass*.
|
||||
Klass refKls = (Klass)Metadata.instantiateWrapperFor(getAddressAtRaw(ci));
|
||||
String klassName = refKls.getName().asString();
|
||||
Short s = (Short) utf8ToIndex.get(klassName);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -116,7 +116,7 @@ public class Field {
|
||||
public boolean hasInitialValue() { return holder.getFieldInitialValueIndex(fieldIndex) != 0; }
|
||||
|
||||
//
|
||||
// Following acccessors are for named, non-VM fields only
|
||||
// Following accessors are for named, non-VM fields only
|
||||
//
|
||||
public boolean isPublic() { return accessFlags.isPublic(); }
|
||||
public boolean isPrivate() { return accessFlags.isPrivate(); }
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -40,7 +40,7 @@ public class GenerateOopMap {
|
||||
// Used for debugging this code
|
||||
private static final boolean DEBUG = false;
|
||||
|
||||
// These two should be removed. But requires som code to be cleaned up
|
||||
// These two should be removed. But requires some code to be cleaned up
|
||||
private static final int MAXARGSIZE = 256; // This should be enough
|
||||
private static final int MAX_LOCAL_VARS = 65536; // 16-bit entry
|
||||
private static final boolean TraceMonitorMismatch = true;
|
||||
@ -163,7 +163,7 @@ public class GenerateOopMap {
|
||||
}
|
||||
}
|
||||
|
||||
/** Contains maping between jsr targets and there return addresses.
|
||||
/** Contains mapping between jsr targets and their return addresses.
|
||||
One-to-many mapping. */
|
||||
static class RetTableEntry {
|
||||
private static int _init_nof_jsrs; // Default size of jsrs list
|
||||
@ -824,7 +824,7 @@ public class GenerateOopMap {
|
||||
if (Assert.ASSERTS_ENABLED) {
|
||||
Assert.that(!fall_through, "cannot be set if ret instruction");
|
||||
}
|
||||
// Automatically handles 'wide' ret indicies
|
||||
// Automatically handles 'wide' ret indices
|
||||
retJumpTargetsDo(itr, new JumpClosure() {
|
||||
public void process(GenerateOopMap c, int bcpDelta, int[] data) {
|
||||
c.mergeState(bcpDelta, data);
|
||||
@ -1027,7 +1027,7 @@ public class GenerateOopMap {
|
||||
|
||||
bbNo++;
|
||||
}
|
||||
// Remember prevous bci.
|
||||
// Remember previous bci.
|
||||
prev_bci = bci;
|
||||
}
|
||||
// Set
|
||||
@ -1700,7 +1700,7 @@ public class GenerateOopMap {
|
||||
", nameAndTypeIdx = " + nameAndTypeIdx + ", signatureIdx = " + signatureIdx + ", bci = " + bci);
|
||||
}
|
||||
|
||||
// Parse signature (espcially simple for fields)
|
||||
// Parse signature (especially simple for fields)
|
||||
// The signature is UFT8 encoded, but the first char is always ASCII for signatures.
|
||||
char sigch = (char) signature.getByteAt(0);
|
||||
CellTypeState[] temp = new CellTypeState[4];
|
||||
@ -2006,7 +2006,7 @@ public class GenerateOopMap {
|
||||
return new String(_state_vec_buf, 0, len);
|
||||
}
|
||||
|
||||
// Helper method. Can be used in subclasses to fx. calculate gc_points. If the current instuction
|
||||
// Helper method. Can be used in subclasses to fx. calculate gc_points. If the current instruction
|
||||
// is a control transfer, then calls the jmpFct all possible destinations.
|
||||
void retJumpTargetsDo (BytecodeStream bcs, JumpClosure closure, int varNo, int[] data) {
|
||||
CellTypeState ra = vars().get(varNo);
|
||||
@ -2292,7 +2292,7 @@ public class GenerateOopMap {
|
||||
// in order (0...code_length-1)
|
||||
// - fillStackmapEpilog is called after all results has been
|
||||
// reported. Note: Since the algorithm does not report stackmaps for
|
||||
// deadcode, fewer gc_points might have been encounted than assumed
|
||||
// deadcode, fewer gc_points might have been encountered than assumed
|
||||
// during the epilog. It is the responsibility of the subclass to
|
||||
// count the correct number.
|
||||
// - fillInitVars are called once with the result of the init_vars
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -172,7 +172,7 @@ public class Klass extends Metadata implements ClassConstants {
|
||||
return isSubclassOf(k);
|
||||
}
|
||||
|
||||
// Find LCA (Least Common Ancester) in class heirarchy
|
||||
// Find LCA (Least Common Ancester) in class hierarchy
|
||||
public Klass lca( Klass k2 ) {
|
||||
Klass k1 = this;
|
||||
while ( true ) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -36,7 +36,7 @@ import sun.jvm.hotspot.utilities.*;
|
||||
// A MultiBranchData is used to access profiling information for
|
||||
// a multi-way branch (*switch bytecodes). It consists of a series
|
||||
// of (count, displacement) pairs, which count the number of times each
|
||||
// case was taken and specify the data displacment for each branch target.
|
||||
// case was taken and specify the data displacement for each branch target.
|
||||
public class MultiBranchData extends ArrayData {
|
||||
static final int defaultCountOffSet = 0;
|
||||
static final int defaultDisaplacementOffSet = 1;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -87,7 +87,7 @@ public interface ClassConstants
|
||||
public static final long JVM_ACC_SUPER = 0x0020; /* funky handling of invokespecial */
|
||||
public static final long JVM_ACC_VOLATILE = 0x0040; /* can not cache in registers */
|
||||
public static final long JVM_ACC_BRIDGE = 0x0040; /* bridge method generated by compiler */
|
||||
public static final long JVM_ACC_TRANSIENT = 0x0080; /* not persistant */
|
||||
public static final long JVM_ACC_TRANSIENT = 0x0080; /* not persistent */
|
||||
public static final long JVM_ACC_VARARGS = 0x0080; /* method declared with variable number of args */
|
||||
public static final long JVM_ACC_NATIVE = 0x0100; /* implemented in C */
|
||||
public static final long JVM_ACC_INTERFACE = 0x0200; /* class is an interface */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -599,7 +599,7 @@ public abstract class Frame implements Cloneable {
|
||||
// => process callee's arguments
|
||||
//
|
||||
// Note: The expression stack can be empty if an exception
|
||||
// occured during method resolution/execution. In all
|
||||
// occurred during method resolution/execution. In all
|
||||
// cases we empty the expression stack completely be-
|
||||
// fore handling the exception (the exception handling
|
||||
// code in the interpreter calls a blocking runtime
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,7 +35,7 @@ public class JavaThreadState {
|
||||
public static final JavaThreadState UNINITIALIZED = new JavaThreadState("UNINITIALIZED");
|
||||
/** Just starting up, i.e., in process of being initialized */
|
||||
public static final JavaThreadState NEW = new JavaThreadState("NEW");
|
||||
/** Corresponding transition state (not used, included for completness) */
|
||||
/** Corresponding transition state (not used, included for completeness) */
|
||||
public static final JavaThreadState NEW_TRANS = new JavaThreadState("NEW_TRANS");
|
||||
/** Running in native code */
|
||||
public static final JavaThreadState IN_NATIVE = new JavaThreadState("IN_NATIVE");
|
||||
@ -47,7 +47,7 @@ public class JavaThreadState {
|
||||
public static final JavaThreadState IN_VM_TRANS = new JavaThreadState("IN_VM_TRANS");
|
||||
/** Running in Java or in stub code */
|
||||
public static final JavaThreadState IN_JAVA = new JavaThreadState("IN_JAVA");
|
||||
/** Corresponding transition state (not used, included for completness) */
|
||||
/** Corresponding transition state (not used, included for completeness) */
|
||||
public static final JavaThreadState IN_JAVA_TRANS = new JavaThreadState("IN_JAVA_TRANS");
|
||||
/** Blocked in vm */
|
||||
public static final JavaThreadState BLOCKED = new JavaThreadState("BLOCKED");
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,7 +30,7 @@ import sun.jvm.hotspot.oops.*;
|
||||
|
||||
public abstract class NativeSignatureIterator extends SignatureIterator {
|
||||
private Method method;
|
||||
// [RGV] We need seperate JNI and Java offset values because in 64 bit mode, the argument offsets
|
||||
// [RGV] We need separate JNI and Java offset values because in 64 bit mode, the argument offsets
|
||||
// are not in sync with the Java stack. For example a long takes up 1 "C" stack entry
|
||||
// but 2 Java stack entries.
|
||||
private int offset; // The java stack offset
|
||||
@ -94,7 +94,7 @@ public abstract class NativeSignatureIterator extends SignatureIterator {
|
||||
prepended = !isStatic() ? JNIEnv_words : JNIEnv_words + mirror_words;
|
||||
}
|
||||
|
||||
// iterate() calles the 2 virtual methods according to the following invocation syntax:
|
||||
// iterate() calls the 2 virtual methods according to the following invocation syntax:
|
||||
//
|
||||
// {pass_int | pass_long | pass_object}
|
||||
//
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -95,7 +95,7 @@ public class AMD64CurrentFrameGuess {
|
||||
}
|
||||
|
||||
// Either frame->method is not a Method* or frame->bcp is not valid. That means either
|
||||
// we have pushed the new interpreter frame, but have not intialized it yet, or
|
||||
// we have pushed the new interpreter frame, but have not initialized it yet, or
|
||||
// we have yet to push the new interpreter frame, and the "current" frame is not an
|
||||
// interpreter frame. Figure out which is the case.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -56,7 +56,7 @@ public class LinuxSignals {
|
||||
"SIGVTALRM", /* virtual timer expired */
|
||||
"SIGPROF", /* profiling timer expired */
|
||||
"SIGWINCH", /* window size change */
|
||||
"SIGPOLL", /* pollable event occured */
|
||||
"SIGPOLL", /* pollable event occurred */
|
||||
"SIGPWR", /* power-fail restart */
|
||||
"SIGSYS"
|
||||
};
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -56,7 +56,7 @@ public class LinuxSignals {
|
||||
"SIGVTALRM", /* virtual timer expired */
|
||||
"SIGPROF", /* profiling timer expired */
|
||||
"SIGWINCH", /* window size change */
|
||||
"SIGPOLL", /* pollable event occured */
|
||||
"SIGPOLL", /* pollable event occurred */
|
||||
"SIGPWR", /* power-fail restart */
|
||||
"SIGSYS"
|
||||
};
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -48,7 +48,7 @@ public class POSIXSignals {
|
||||
"SIGPWR", /* power-fail restart */
|
||||
"SIGWINCH", /* window size change */
|
||||
"SIGURG", /* urgent socket condition */
|
||||
"SIGPOLL", /* pollable event occured */
|
||||
"SIGPOLL", /* pollable event occurred */
|
||||
"SIGSTOP", /* stop (cannot be caught or ignored) */
|
||||
"SIGTSTP", /* user stop requested from tty */
|
||||
"SIGCONT", /* stopped process has been continued */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -121,7 +121,7 @@ public class FinalizerInfo extends Tool {
|
||||
}
|
||||
|
||||
/*
|
||||
* Sort results - decending order by total size
|
||||
* Sort results - descending order by total size
|
||||
*/
|
||||
ArrayList<ObjectHistogramElement> list = new ArrayList<>();
|
||||
list.addAll(map.values());
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -282,7 +282,7 @@ public class ObjectHistogramPanel extends JPanel implements ActionListener {
|
||||
* Find and select the row that contains the text in the find field starting
|
||||
* from the current selected row.
|
||||
*
|
||||
* Uses a linear search from the current row. Could be optimized withing the
|
||||
* Uses a linear search from the current row. Could be optimized within the
|
||||
* model and internal representation.
|
||||
*/
|
||||
private void findObject() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -39,7 +39,7 @@ public class ThreadInfoAction extends StateChangeAction {
|
||||
public static final String VALUE_SMALL_ICON = "general/Information16.gif";
|
||||
public static final String VALUE_LARGE_ICON = "general/Information24.gif";
|
||||
public static final Integer VALUE_MNEMONIC = (int) 'I';
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Show Thread Informaion";
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Show Thread Information";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Show information about the current thread";
|
||||
|
||||
public ThreadInfoAction() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,7 +34,7 @@ import javax.swing.table.TableColumnModel;
|
||||
import com.sun.java.swing.ui.CommonUI;
|
||||
|
||||
/**
|
||||
* A mouse adapater which is attached to the header of a JTable. It listens
|
||||
* A mouse adapter which is attached to the header of a JTable. It listens
|
||||
* for mouse clicks on a column and sorts that column.
|
||||
*/
|
||||
public class SortHeaderMouseAdapter extends MouseAdapter {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -42,7 +42,7 @@ public abstract class AbstractTreeTableModel implements TreeTableModel {
|
||||
}
|
||||
|
||||
//
|
||||
// Default implmentations for methods in the TreeModel interface.
|
||||
// Default implementations for methods in the TreeModel interface.
|
||||
//
|
||||
|
||||
public Object getRoot() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -158,11 +158,11 @@ public class JTreeTable extends JTable {
|
||||
}
|
||||
|
||||
/**
|
||||
* This is overriden to invoke supers implementation, and then,
|
||||
* This is overridden to invoke supers implementation, and then,
|
||||
* if the receiver is editing a Tree column, the editors bounds is
|
||||
* reset. The reason we have to do this is because JTable doesn't
|
||||
* think the table is being edited, as <code>getEditingRow</code> returns
|
||||
* -1, and therefore doesn't automaticly resize the editor for us.
|
||||
* -1, and therefore doesn't automatically resize the editor for us.
|
||||
*/
|
||||
public void sizeColumnsToFit(int resizingColumn) {
|
||||
super.sizeColumnsToFit(resizingColumn);
|
||||
@ -194,7 +194,7 @@ public class JTreeTable extends JTable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Overriden to invoke repaint for the particular location if
|
||||
* Overridden to invoke repaint for the particular location if
|
||||
* the column contains the tree. This is done as the tree editor does
|
||||
* not fill the bounds of the cell, we need the renderer to paint
|
||||
* the tree in the background, and then draw the editor over it.
|
||||
@ -353,7 +353,7 @@ public class JTreeTable extends JTable {
|
||||
* to perform the actual editing.
|
||||
* <p>To support editing of the tree column we can not make the tree
|
||||
* editable. The reason this doesn't work is that you can not use
|
||||
* the same component for editing and renderering. The table may have
|
||||
* the same component for editing and rendering. The table may have
|
||||
* the need to paint cells, while a cell is being edited. If the same
|
||||
* component were used for the rendering and editing the component would
|
||||
* be moved around, and the contents would change. When editing, this
|
||||
@ -381,7 +381,7 @@ public class JTreeTable extends JTable {
|
||||
* an instance of DefaultTreeCellRenderer. If you need custom
|
||||
* TreeCellRenderers, that don't descend from DefaultTreeCellRenderer,
|
||||
* and you want to support editing in JTreeTable, you will have
|
||||
* to do something similiar.
|
||||
* to do something similar.
|
||||
*/
|
||||
public class TreeTableCellEditor extends DefaultCellEditor {
|
||||
public TreeTableCellEditor() {
|
||||
@ -389,9 +389,9 @@ public class JTreeTable extends JTable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Overriden to determine an offset that tree would place the
|
||||
* Overridden to determine an offset that tree would place the
|
||||
* editor at. The offset is determined from the
|
||||
* <code>getRowBounds</code> JTree method, and additionaly
|
||||
* <code>getRowBounds</code> JTree method, and additionally
|
||||
* from the icon DefaultTreeCellRenderer will use.
|
||||
* <p>The offset is then set on the TreeTableTextField component
|
||||
* created in the constructor, and returned.
|
||||
@ -428,7 +428,7 @@ public class JTreeTable extends JTable {
|
||||
}
|
||||
|
||||
/**
|
||||
* This is overriden to forward the event to the tree. This will
|
||||
* This is overridden to forward the event to the tree. This will
|
||||
* return true if the click count >= 3, or the event is null.
|
||||
*/
|
||||
public boolean isCellEditable(EventObject e) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,7 +28,7 @@ import javax.swing.tree.TreeModel;
|
||||
|
||||
/**
|
||||
* TreeTableModel is the model used by a JTreeTable. It extends TreeModel
|
||||
* to add methods for getting inforamtion about the set of columns each
|
||||
* to add methods for getting information about the set of columns each
|
||||
* node in the TreeTableModel may have. Each column, like a column in
|
||||
* a TableModel, has a name and a type associated with it. Each node in
|
||||
* the TreeTableModel can return a value for each of the columns and
|
||||
@ -40,7 +40,7 @@ import javax.swing.tree.TreeModel;
|
||||
public interface TreeTableModel extends TreeModel
|
||||
{
|
||||
/**
|
||||
* Returns the number ofs availible column.
|
||||
* Returns the number of available columns.
|
||||
*/
|
||||
public int getColumnCount();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -431,7 +431,7 @@ public abstract class AbstractHeapGraphWriter implements HeapGraphWriter {
|
||||
// HeapVisitor, OopVisitor methods can't throw any non-runtime
|
||||
// exception. But, derived class write methods (which are called
|
||||
// from visitor callbacks) may throw IOException. Hence, we throw
|
||||
// RuntimeException with origianal IOException as cause from the
|
||||
// RuntimeException with original IOException as cause from the
|
||||
// visitor methods. This method gets back the original IOException
|
||||
// (if any) and re-throws the same.
|
||||
protected void handleRuntimeException(RuntimeException re)
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -57,7 +57,7 @@ import sun.jvm.hotspot.runtime.*;
|
||||
* <ul>
|
||||
* <li>Java byte, int, short, long - GXL int attribute
|
||||
* <li>Java float, double - GXL float attribute
|
||||
* <li>Java boolean - GXL bool atttribute
|
||||
* <li>Java boolean - GXL bool attribute
|
||||
* <li>Java char - GXL string attribute
|
||||
* </ul>
|
||||
*
|
||||
|
@ -140,7 +140,7 @@ public class PointerFinder {
|
||||
loc.blob = c.findBlobUnsafe(a);
|
||||
} catch (Exception e) {
|
||||
// Since we potentially have a random address in the codecache and therefore could
|
||||
// be dealing with a freed or partialy intialized blob, exceptions are possible.
|
||||
// be dealing with a freed or partially initialized blob, exceptions are possible.
|
||||
}
|
||||
if (loc.blob == null) {
|
||||
// It's possible that there is no CodeBlob for this address. Let
|
||||
|
@ -307,7 +307,7 @@ public class PointerLocation {
|
||||
} else {
|
||||
tty.print(" in ");
|
||||
// Since we potentially have a random address in the codecache and therefore could
|
||||
// be dealing with a freed or partialy intialized blob, exceptions are possible.
|
||||
// be dealing with a freed or partially initialized blob, exceptions are possible.
|
||||
// One known case is an NMethod where the method is still null, resulting in an NPE.
|
||||
try {
|
||||
if (verbose) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -41,7 +41,7 @@ package sun.jvm.hotspot.utilities;
|
||||
<P> An RBTree takes a Comparator as argument to its constructor
|
||||
which is used internally to order the nodes in the tree. The
|
||||
comparator's arguments are obtained by calling the routine
|
||||
"getNodeData" on two nodes; the default implementaion returns the
|
||||
"getNodeData" on two nodes; the default implementation returns the
|
||||
node data. This Comparator is also used to perform the generic
|
||||
"find" operation, which returns the RBNode containing user data
|
||||
precisely equalling the query data. Different types of user data
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -36,7 +36,7 @@ public class WorkerThread {
|
||||
mqb = new MessageQueueBackend();
|
||||
mq = mqb.getFirstQueue();
|
||||
|
||||
// Enable to terminate this worker during runnning by daemonize.
|
||||
// Enable to terminate this worker during running by daemonize.
|
||||
Thread mqthread = new Thread(new MainLoop());
|
||||
mqthread.setDaemon(true);
|
||||
mqthread.start();
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -772,7 +772,7 @@ JNIEXPORT jlong JNICALL Java_sun_jvm_hotspot_debugger_windbg_WindbgDebuggerLocal
|
||||
ULONG id = 0;
|
||||
HRESULT hr = ptrIDebugSystemObjects->GetThreadIdBySystemId((ULONG)sysId, &id);
|
||||
if (hr != S_OK) {
|
||||
// This is not considered fatal and does happen on occassion, usually with an
|
||||
// This is not considered fatal and does happen on occasion, usually with an
|
||||
// 0x80004002 "No such interface supported". The root cause is not fully understood,
|
||||
// but by ignoring this error and returning NULL, stacking walking code will get
|
||||
// null registers and fallback to using the "last java frame" if setup.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -165,7 +165,7 @@ public abstract class AbstractPerfDataBufferPrologue {
|
||||
|
||||
/**
|
||||
* Get the accessible flag. If supported, it indicates that the shared
|
||||
* memory region is sufficiently initialized for client acccess.
|
||||
* memory region is sufficiently initialized for client access.
|
||||
*
|
||||
* @return boolean - the initialized status
|
||||
* @see #supportsAccessible()
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -84,7 +84,7 @@ public class MonitoredHostProvider extends MonitoredHost {
|
||||
/**
|
||||
* {@inheritDoc}.
|
||||
* <p>
|
||||
* Note - the <em>file:</em> protocol currenly does not support
|
||||
* Note - the <em>file:</em> protocol currently does not support
|
||||
* registration or notification of event listeners. This method
|
||||
* silently ignores the add request.
|
||||
*/
|
||||
@ -95,7 +95,7 @@ public class MonitoredHostProvider extends MonitoredHost {
|
||||
/**
|
||||
* {@inheritDoc}.
|
||||
* <p>
|
||||
* Note - the <em>file:</em> protocol currenly does not support
|
||||
* Note - the <em>file:</em> protocol currently does not support
|
||||
* registration or notification of event listeners. This method
|
||||
* silently ignores the remove request.
|
||||
*/
|
||||
|
@ -33,7 +33,7 @@ import java.nio.channels.FileChannel;
|
||||
|
||||
/**
|
||||
* The concrete PerfDataBuffer implementation for the <em>file:</em>
|
||||
* protocol for the HotSpot PerfData monitoring implemetation.
|
||||
* protocol for the HotSpot PerfData monitoring implementation.
|
||||
* <p>
|
||||
* This class is responsible for acquiring access to the instrumentation
|
||||
* buffer stored in a file referenced by a file URI.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -64,7 +64,7 @@ public class PerfDataBufferPrologue extends AbstractPerfDataBufferPrologue {
|
||||
static final int PERFDATA_PROLOG_MODTIMESTAMP_SIZE=8; // sizeof(long)
|
||||
static final int PERFDATA_PROLOG_SIZE=24; // sizeof(struct PerfDataProlog)
|
||||
|
||||
// counter names for prologue psuedo counters
|
||||
// counter names for prologue pseudo counters
|
||||
static final String PERFDATA_BUFFER_SIZE_NAME = "sun.perfdata.size";
|
||||
static final String PERFDATA_BUFFER_USED_NAME = "sun.perfdata.used";
|
||||
static final String PERFDATA_OVERFLOW_NAME = "sun.perfdata.overflow";
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -39,7 +39,7 @@ import java.nio.*;
|
||||
* memory buffer.
|
||||
* <p>
|
||||
* The structure of the 2.0 entry is defined in struct PerfDataEnry
|
||||
* as decsribed in perfMemory.hpp. This structure looks like:
|
||||
* as described in perfMemory.hpp. This structure looks like:
|
||||
* <pre>
|
||||
* typedef struct {
|
||||
* jint entry_length; // entry length in bytes
|
||||
@ -72,7 +72,7 @@ public class PerfDataBuffer extends PerfDataBufferImpl {
|
||||
* These are primarily for documentary purposes and the match up
|
||||
* with the PerfDataEntry structure in perfMemory.hpp. They are
|
||||
* generally unused in this code, but they are kept consistent with
|
||||
* the data structure just in case some unforseen need arrises.
|
||||
* the data structure just in case some unforeseen need arrises.
|
||||
*/
|
||||
private static final int PERFDATA_ENTRYLENGTH_OFFSET=0;
|
||||
private static final int PERFDATA_ENTRYLENGTH_SIZE=4; // sizeof(int)
|
||||
@ -152,7 +152,7 @@ public class PerfDataBuffer extends PerfDataBufferImpl {
|
||||
* we are parsing it. The map will contain all the counters
|
||||
* found, but the number recorded in numEntries might be small
|
||||
* than what than the number we actually parsed (due to asynchronous
|
||||
* updates). This discrepency is handled by ignoring any re-parsed
|
||||
* updates). This discrepancy is handled by ignoring any re-parsed
|
||||
* entries when updating the Map in getNewMonitors().
|
||||
*/
|
||||
lastNumEntries = numEntries;
|
||||
@ -292,7 +292,7 @@ public class PerfDataBuffer extends PerfDataBufferImpl {
|
||||
+ Integer.toHexString(nextEntry));
|
||||
}
|
||||
|
||||
// protect againt a corrupted shard memory region.
|
||||
// protect against a corrupted shared memory region.
|
||||
if ((nextEntry < 0) || (nextEntry > buffer.limit())) {
|
||||
throw new MonitorStructureException(
|
||||
"Entry index out of bounds: "
|
||||
@ -455,7 +455,7 @@ public class PerfDataBuffer extends PerfDataBufferImpl {
|
||||
if (units != Units.STRING) {
|
||||
// only byte arrays of type STRING are currently supported
|
||||
throw new MonitorTypeException(
|
||||
"Unexpected vector type encounterd:"
|
||||
"Unexpected vector type encountered:"
|
||||
+ " entry_offset = "
|
||||
+ Integer.toHexString(nextEntry)
|
||||
+ ", name = " + name
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -133,7 +133,7 @@ public class Arguments {
|
||||
return value * 1000;
|
||||
} else {
|
||||
throw new IllegalArgumentException(
|
||||
"Unknow time unit: " + unitString);
|
||||
"Unknown time unit: " + unitString);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
throw new IllegalArgumentException(
|
||||
@ -328,7 +328,7 @@ public class Arguments {
|
||||
}
|
||||
}
|
||||
|
||||
// verify that the vm identifier is valied
|
||||
// verify that the vm identifier is valid
|
||||
try {
|
||||
vmId = new VmIdentifier(vmIdString);
|
||||
} catch (URISyntaxException e) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -53,7 +53,7 @@ public class ColumnFormat extends OptionFormat {
|
||||
public void validate() throws ParserException {
|
||||
|
||||
// if we allow column spanning, then this method must change. it
|
||||
// should allow null data statments
|
||||
// should allow null data statements
|
||||
|
||||
if (expression == null) {
|
||||
// current policy is that a data statement must be specified
|
||||
@ -66,7 +66,7 @@ public class ColumnFormat extends OptionFormat {
|
||||
throw new ParserException("Missing header statement in column " + number);
|
||||
}
|
||||
if (format == null) {
|
||||
// if no formating is specified, then the format is set to output
|
||||
// if no formatting is specified, then the format is set to output
|
||||
// the raw data.
|
||||
format="0";
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -532,7 +532,7 @@ public class Parser {
|
||||
nextToken();
|
||||
|
||||
/*
|
||||
* this search stops on the first occurance of an option
|
||||
* this search stops on the first occurrence of an option
|
||||
* statement with a name matching the given option. Any
|
||||
* duplicate options are ignored.
|
||||
*/
|
||||
|
@ -368,14 +368,14 @@ If no parameters are entered, the current settings are displayed.
|
||||
\f[CB]globalbuffercount\f[R]: (Optional) Number of global buffers.
|
||||
This option is a legacy option: change the \f[CB]memorysize\f[R] parameter
|
||||
to alter the number of global buffers.
|
||||
This value cannot be changed once JFR has been initalized.
|
||||
This value cannot be changed once JFR has been initialized.
|
||||
(STRING, default determined by the value for \f[CB]memorysize\f[R])
|
||||
.IP \[bu] 2
|
||||
\f[CB]globalbuffersize\f[R]: (Optional) Size of the global buffers, in
|
||||
bytes.
|
||||
This option is a legacy option: change the \f[CB]memorysize\f[R] parameter
|
||||
to alter the size of the global buffers.
|
||||
This value cannot be changed once JFR has been initalized.
|
||||
This value cannot be changed once JFR has been initialized.
|
||||
(STRING, default determined by the value for \f[CB]memorysize\f[R])
|
||||
.IP \[bu] 2
|
||||
\f[CB]maxchunksize\f[R]: (Optional) Maximum size of an individual data
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -195,7 +195,7 @@ public class LocalVirtualMachine {
|
||||
// Check if the VM is attachable but not included in the list
|
||||
// if it's running with a different security context.
|
||||
// For example, Windows services running
|
||||
// local SYSTEM account are attachable if you have Adminstrator
|
||||
// local SYSTEM account are attachable if you have Administrator
|
||||
// privileges.
|
||||
boolean attachable = false;
|
||||
String address = null;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -221,7 +221,7 @@ public class Plotter extends JComponent
|
||||
}
|
||||
|
||||
/**
|
||||
* @param minutes the displayed time range in minutes, or -1 to diaplay all data
|
||||
* @param minutes the displayed time range in minutes, or -1 to display all data
|
||||
*/
|
||||
public void setViewRange(int minutes) {
|
||||
if (minutes != viewRange) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -126,7 +126,7 @@ public class TableSorter extends DefaultTableModel implements MouseListener {
|
||||
//
|
||||
// When we reach here the previous value is already validated, and the
|
||||
// old editor is closed, but the new editor might have opened.
|
||||
// It's this new editor that wil be cancelled here, if needed.
|
||||
// It's this new editor that will be cancelled here, if needed.
|
||||
//
|
||||
if (attrs != null && attrs.isEditing())
|
||||
attrs.cancelCellEditing();
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -217,7 +217,7 @@ public interface ClassType extends ReferenceType {
|
||||
* @throws java.lang.IllegalArgumentException if the method is not
|
||||
* a member of this class or a superclass, if the size of the argument list
|
||||
* does not match the number of declared arguments for the method, or
|
||||
* if the method is an initializer, constructor or static intializer.
|
||||
* if the method is an initializer, constructor or static initializer.
|
||||
* @throws ClassNotLoadedException if any argument type has not yet been loaded
|
||||
* through the appropriate class loader.
|
||||
* @throws IncompatibleThreadStateException if the specified thread has not
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -116,7 +116,7 @@ public interface Location extends Mirror, Comparable<Location> {
|
||||
long codeIndex();
|
||||
|
||||
/**
|
||||
* Gets an identifing name for the source corresponding to
|
||||
* Gets an identifying name for the source corresponding to
|
||||
* this location.
|
||||
* <P>
|
||||
* This method is equivalent to
|
||||
@ -131,7 +131,7 @@ public interface Location extends Mirror, Comparable<Location> {
|
||||
String sourceName() throws AbsentInformationException;
|
||||
|
||||
/**
|
||||
* Gets an identifing name for the source corresponding to
|
||||
* Gets an identifying name for the source corresponding to
|
||||
* this location. Interpretation of this string is the
|
||||
* responsibility of the source repository mechanism.
|
||||
* <P>
|
||||
|
@ -248,7 +248,7 @@ public interface ThreadReference extends ObjectReference {
|
||||
* @throws IncompatibleThreadStateException if the thread is
|
||||
* not suspended in the target VM
|
||||
* @throws IndexOutOfBoundsException if the specified range is not
|
||||
* within the range of stack frame indicies.
|
||||
* within the range of stack frame indices.
|
||||
* That is, the exception is thrown if any of the following are true:
|
||||
* <pre> start < 0
|
||||
* start >= {@link #frameCount}
|
||||
|
@ -155,7 +155,7 @@ public interface VirtualMachine extends Mirror {
|
||||
* is called 'equivalent' (to the old version of the
|
||||
* method) if
|
||||
* <UL>
|
||||
* <LI>their bytecodes are the same except for indicies into
|
||||
* <LI>their bytecodes are the same except for indices into
|
||||
* the constant pool, and
|
||||
* <LI>the referenced constants are equal.
|
||||
* </UL>
|
||||
@ -899,7 +899,7 @@ public interface VirtualMachine extends Mirror {
|
||||
int TRACE_RECEIVES = 0x00000002;
|
||||
/** Tracing enabled for internal event handling. */
|
||||
int TRACE_EVENTS = 0x00000004;
|
||||
/** Tracing enabled for internal managment of reference types. */
|
||||
/** Tracing enabled for internal management of reference types. */
|
||||
int TRACE_REFTYPES = 0x00000008;
|
||||
/** Tracing enabled for internal management of object references. */
|
||||
int TRACE_OBJREFS = 0x00000010;
|
||||
|
@ -255,7 +255,7 @@ import com.sun.jdi.event.VMStartEvent;
|
||||
* For example, if the transport service {@link
|
||||
* TransportService#name() name()} method
|
||||
* returns {@code telepathic} then the AttachingConnector will
|
||||
* be named {@code telepathicAttach}. Similiarly the ListeningConnector
|
||||
* be named {@code telepathicAttach}. Similarly the ListeningConnector
|
||||
* will be named with the string {@code Listen} tagged onto the
|
||||
* name of the transport service. The {@link
|
||||
* Connector#description() description()} method
|
||||
@ -377,7 +377,7 @@ public interface VirtualMachineManager {
|
||||
* mirror to represent the composite state of the target VM.
|
||||
*
|
||||
* <p> The {@code process} argument specifies the
|
||||
* {@link java.lang.Process} object for the taget VM. It may be
|
||||
* {@link java.lang.Process} object for the target VM. It may be
|
||||
* specified as {@code null}. If the target VM is launched
|
||||
* by a {@link LaunchingConnector
|
||||
* LaunchingConnector} the {@code process} argument should be
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,7 +35,7 @@ import com.sun.jdi.connect.spi.TransportService;
|
||||
* <p> When attaching to a target VM, using {@link
|
||||
* AttachingConnector#attach attach} this
|
||||
* exception may be thrown if the connector supports a timeout
|
||||
* {@link Connector.Argument connector argument}. Similiarly,
|
||||
* {@link Connector.Argument connector argument}. Similarly,
|
||||
* when waiting to accept a connection from a target VM,
|
||||
* using {@link ListeningConnector#accept accept} this
|
||||
* exception may be thrown if the connector supports a
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -33,9 +33,9 @@ package com.sun.jdi.connect.spi;
|
||||
* <p> When a thread is blocked in {@link Connection#readPacket
|
||||
* readPacket} waiting for packet from a target VM the
|
||||
* {@link Connection} may be closed asynchronous by another
|
||||
* thread invokving the {@link Connection#close close} method.
|
||||
* thread invoking the {@link Connection#close close} method.
|
||||
* When this arises the thread in readPacket will throw this
|
||||
* exception. Similiarly when a thread is blocked in
|
||||
* exception. Similarly when a thread is blocked in
|
||||
* {@link Connection#writePacket} the Connection may be closed.
|
||||
* When this occurs the thread in writePacket will throw
|
||||
* this exception.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -49,7 +49,7 @@ public interface Event extends Mirror {
|
||||
/**
|
||||
* @return The {@link EventRequest} that requested this event.
|
||||
* Some events (eg. {@link VMDeathEvent}) may not have
|
||||
* a cooresponding request and thus will return null.
|
||||
* a corresponding request and thus will return null.
|
||||
*/
|
||||
EventRequest request();
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -90,7 +90,7 @@ import com.sun.jdi.request.EventRequest;
|
||||
* <UL>
|
||||
* <LI>{@link ModificationWatchpointEvent}
|
||||
* </UL>
|
||||
* <LI>Only with other ExceptionEvents for the same exception occurrance:
|
||||
* <LI>Only with other ExceptionEvents for the same exception occurrence:
|
||||
* <UL>
|
||||
* <LI>{@link ExceptionEvent}
|
||||
* </UL>
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -142,7 +142,7 @@ public interface EventRequest extends Mirror {
|
||||
* reported. In either case subsequent events are never reported for
|
||||
* this request.
|
||||
*
|
||||
* @param count the number of ocurrences before generating an event.
|
||||
* @param count the number of occurrences before generating an event.
|
||||
* @throws InvalidRequestStateException if this request is currently
|
||||
* enabled or has been deleted.
|
||||
* Filters may be added only to disabled requests.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -181,7 +181,7 @@ abstract class LValue {
|
||||
/*
|
||||
* TO DO: Note that this currently fails to find superclass
|
||||
* or implemented interface fields. This is due to a temporary
|
||||
* limititation of RefType.fieldByName. Once that method is
|
||||
* limitation of RefType.fieldByName. Once that method is
|
||||
* fixed, superclass fields will be found.
|
||||
*/
|
||||
Field field = refType.fieldByName(name);
|
||||
@ -597,7 +597,7 @@ abstract class LValue {
|
||||
/*
|
||||
* Since one can code "int myLen = myArray.length;",
|
||||
* one might expect that these JDI calls would get a Value
|
||||
* object for the length of an array in the debugee:
|
||||
* object for the length of an array in the debuggee:
|
||||
* Field xxx = ArrayType.fieldByName("length")
|
||||
* Value lenVal= ArrayReference.getValue(xxx)
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -85,7 +85,7 @@ public class ParseException extends Exception {
|
||||
/**
|
||||
* This is the last token that has been consumed successfully. If
|
||||
* this object has been created due to a parse error, the token
|
||||
* followng this token will (therefore) be the first error token.
|
||||
* following this token will (therefore) be the first error token.
|
||||
*/
|
||||
public Token currentToken;
|
||||
|
||||
|
@ -162,7 +162,7 @@ class Env {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a Reader cooresponding to the source of this location.
|
||||
* Return a Reader corresponding to the source of this location.
|
||||
* Return null if not available.
|
||||
* Note: returned reader must be closed.
|
||||
*/
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -62,7 +62,7 @@ abstract class EventRequestSpec {
|
||||
|
||||
/**
|
||||
* @return If this EventRequestSpec matches the 'refType'
|
||||
* return the cooresponding EventRequest. Otherwise
|
||||
* return the corresponding EventRequest. Otherwise
|
||||
* return null.
|
||||
*/
|
||||
synchronized EventRequest resolve(ClassPrepareEvent event) throws Exception {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -47,7 +47,7 @@ class SourceMapper {
|
||||
|
||||
SourceMapper(List<String> sourcepath) {
|
||||
/*
|
||||
* sourcepath can arrive from the debugee as a List.
|
||||
* sourcepath can arrive from the debuggee as a List.
|
||||
* (via PathSearchingVirtualMachine.classPath())
|
||||
*/
|
||||
List<String> dirList = new ArrayList<String>();
|
||||
@ -69,7 +69,7 @@ class SourceMapper {
|
||||
*
|
||||
* Using File.pathSeparator as delimiter below is OK
|
||||
* because we are on the same machine as the command
|
||||
* line originiated.
|
||||
* line originated.
|
||||
*/
|
||||
StringTokenizer st = new StringTokenizer(sourcepath,
|
||||
File.pathSeparator);
|
||||
@ -105,7 +105,7 @@ class SourceMapper {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a File cooresponding to the source of this location.
|
||||
* Return a File corresponding to the source of this location.
|
||||
* Return null if not available.
|
||||
*/
|
||||
File sourceFile(Location loc) {
|
||||
@ -128,7 +128,7 @@ class SourceMapper {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a BufferedReader cooresponding to the source
|
||||
* Return a BufferedReader corresponding to the source
|
||||
* of this location.
|
||||
* Return null if not available.
|
||||
* Note: returned reader must be closed.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user