summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/vm/reference/gnu/java/lang
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/vm/reference/gnu/java/lang')
-rw-r--r--libjava/classpath/vm/reference/gnu/java/lang/VMCPStringBuilder.java34
-rw-r--r--libjava/classpath/vm/reference/gnu/java/lang/VMInstrumentationImpl.java22
-rw-r--r--libjava/classpath/vm/reference/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java2
-rw-r--r--libjava/classpath/vm/reference/gnu/java/lang/management/VMCompilationMXBeanImpl.java2
-rw-r--r--libjava/classpath/vm/reference/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java2
-rw-r--r--libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryMXBeanImpl.java46
-rw-r--r--libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java20
-rw-r--r--libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java10
-rw-r--r--libjava/classpath/vm/reference/gnu/java/lang/management/VMThreadMXBeanImpl.java18
9 files changed, 78 insertions, 78 deletions
diff --git a/libjava/classpath/vm/reference/gnu/java/lang/VMCPStringBuilder.java b/libjava/classpath/vm/reference/gnu/java/lang/VMCPStringBuilder.java
index 8e137cd3fec..c3a3784f398 100644
--- a/libjava/classpath/vm/reference/gnu/java/lang/VMCPStringBuilder.java
+++ b/libjava/classpath/vm/reference/gnu/java/lang/VMCPStringBuilder.java
@@ -59,16 +59,16 @@ final class VMCPStringBuilder
{
try
{
- cons = String.class.getDeclaredConstructor(new Class[] { char[].class,
- Integer.TYPE,
- Integer.TYPE,
- Boolean.TYPE });
- cons.setAccessible(true);
+ cons = String.class.getDeclaredConstructor(new Class[] { char[].class,
+ Integer.TYPE,
+ Integer.TYPE,
+ Boolean.TYPE });
+ cons.setAccessible(true);
}
catch (NoSuchMethodException e)
{
- throw (Error)
- new InternalError("Could not get no-copy String constructor").initCause(e);
+ throw (Error)
+ new InternalError("Could not get no-copy String constructor").initCause(e);
}
}
@@ -87,25 +87,25 @@ final class VMCPStringBuilder
{
try
{
- return (String)
- cons.newInstance(new Object[] { value, Integer.valueOf(startIndex),
- Integer.valueOf(count),
- Boolean.valueOf(true) });
+ return (String)
+ cons.newInstance(new Object[] { value, Integer.valueOf(startIndex),
+ Integer.valueOf(count),
+ Boolean.valueOf(true) });
}
catch (InstantiationException e)
{
- throw (Error)
- new InternalError("Could not instantiate no-copy String constructor").initCause(e);
+ throw (Error)
+ new InternalError("Could not instantiate no-copy String constructor").initCause(e);
}
catch (IllegalAccessException e)
{
- throw (Error)
- new InternalError("Could not access no-copy String constructor").initCause(e);
+ throw (Error)
+ new InternalError("Could not access no-copy String constructor").initCause(e);
}
catch (InvocationTargetException e)
{
- throw (Error)
- new InternalError("Error calling no-copy String constructor").initCause(e);
+ throw (Error)
+ new InternalError("Error calling no-copy String constructor").initCause(e);
}
}
diff --git a/libjava/classpath/vm/reference/gnu/java/lang/VMInstrumentationImpl.java b/libjava/classpath/vm/reference/gnu/java/lang/VMInstrumentationImpl.java
index eee94702d35..5501f0f7f5b 100644
--- a/libjava/classpath/vm/reference/gnu/java/lang/VMInstrumentationImpl.java
+++ b/libjava/classpath/vm/reference/gnu/java/lang/VMInstrumentationImpl.java
@@ -48,14 +48,14 @@ import java.lang.instrument.Instrumentation;
*/
final class VMInstrumentationImpl
{
-
+
/**
* Returns if the current JVM supports class redefinition
- *
+ *
* @return true if the current JVM supports class redefinition
*/
static native boolean isRedefineClassesSupported();
-
+
/**
* Redefines classes given as parameters. The method has to call
* the callTransformers from InstrumentationImpl
@@ -63,8 +63,8 @@ final class VMInstrumentationImpl
* @param inst an instrumentation object
* @param definitions an array of bytecode<->class correspondance
*
- * @throws ClassNotFoundException if a class cannot be found
- * @throws UnmodifiableClassException if a class cannot be modified
+ * @throws ClassNotFoundException if a class cannot be found
+ * @throws UnmodifiableClassException if a class cannot be modified
* @throws UnsupportedOperationException if the JVM does not support
* redefinition or the redefinition made unsupported changes
* @throws ClassFormatError if a class file is not valid
@@ -74,14 +74,14 @@ final class VMInstrumentationImpl
* are unsupported
* @throws ClassCircularityError if circularity occured with the new
* classes
- * @throws LinkageError if a linkage error occurs
+ * @throws LinkageError if a linkage error occurs
*/
static native void redefineClasses(Instrumentation inst,
ClassDefinition[] definitions);
-
+
/**
* Get all the classes loaded by the JVM.
- *
+ *
* @return an array containing all the classes loaded by the JVM. The array
* is empty if no class is loaded.
*/
@@ -89,9 +89,9 @@ final class VMInstrumentationImpl
/**
* Get all the classes loaded by a given class loader
- *
+ *
* @param loader the loader
- *
+ *
* @return an array containing all the classes loaded by the given loader.
* The array is empty if no class was loaded by the loader.
*/
@@ -99,7 +99,7 @@ final class VMInstrumentationImpl
/**
* Get the size of an object. The object is not null
- *
+ *
* @param objectToSize the object
* @return the size of the object
*/
diff --git a/libjava/classpath/vm/reference/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java b/libjava/classpath/vm/reference/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java
index c1c7d13dd44..ea49897419b 100644
--- a/libjava/classpath/vm/reference/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java
+++ b/libjava/classpath/vm/reference/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java
@@ -38,7 +38,7 @@ exception statement from your version. */
package gnu.java.lang.management;
/**
- * Provides access to information about the class loading
+ * Provides access to information about the class loading
* behaviour of the current invocation of the virtual
* machine. Instances of this bean are obtained by calling
* {@link ManagementFactory#getClassLoadingMXBean()}.
diff --git a/libjava/classpath/vm/reference/gnu/java/lang/management/VMCompilationMXBeanImpl.java b/libjava/classpath/vm/reference/gnu/java/lang/management/VMCompilationMXBeanImpl.java
index b9b5bbcefc7..019af0ca411 100644
--- a/libjava/classpath/vm/reference/gnu/java/lang/management/VMCompilationMXBeanImpl.java
+++ b/libjava/classpath/vm/reference/gnu/java/lang/management/VMCompilationMXBeanImpl.java
@@ -38,7 +38,7 @@ exception statement from your version. */
package gnu.java.lang.management;
/**
- * Provides access to information about the JIT
+ * Provides access to information about the JIT
* compiler of the virtual machine, if one exists.
* Instances of this bean are obtained by calling
* {@link ManagementFactory#getCompilationMXBean()},
diff --git a/libjava/classpath/vm/reference/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java b/libjava/classpath/vm/reference/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java
index 2a202849a8f..00861bc21de 100644
--- a/libjava/classpath/vm/reference/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java
+++ b/libjava/classpath/vm/reference/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java
@@ -70,7 +70,7 @@ final class VMGarbageCollectorMXBeanImpl
* Note that the accumulated time may not change, even when the
* collection count increases, if the time taken is sufficiently
* short; this depends on the resolution of the timer used.
- *
+ *
* @param name the name of the garbage collector.
* @return the accumulated number of milliseconds spent collecting,
* or -1 if this is undefined.
diff --git a/libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryMXBeanImpl.java b/libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryMXBeanImpl.java
index eade26374db..7f69bdfb741 100644
--- a/libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryMXBeanImpl.java
+++ b/libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryMXBeanImpl.java
@@ -126,29 +126,29 @@ final class VMMemoryMXBeanImpl
ManagementFactory.getMemoryPoolMXBeans().iterator();
while (pools.hasNext())
{
- MemoryPoolMXBean pool = (MemoryPoolMXBean) pools.next();
- if (pool.getType() == type)
- {
- MemoryUsage usage = pool.getUsage();
- if (init != -1)
- {
- long poolInit = usage.getInit();
- if (poolInit == -1)
- init = -1;
- else
- init += poolInit;
- }
- committed += usage.getCommitted();
- used += usage.getUsed();
- if (max != -1)
- {
- long poolMax = usage.getMax();
- if (poolMax == -1)
- max = -1;
- else
- max += poolMax;
- }
- }
+ MemoryPoolMXBean pool = (MemoryPoolMXBean) pools.next();
+ if (pool.getType() == type)
+ {
+ MemoryUsage usage = pool.getUsage();
+ if (init != -1)
+ {
+ long poolInit = usage.getInit();
+ if (poolInit == -1)
+ init = -1;
+ else
+ init += poolInit;
+ }
+ committed += usage.getCommitted();
+ used += usage.getUsed();
+ if (max != -1)
+ {
+ long poolMax = usage.getMax();
+ if (poolMax == -1)
+ max = -1;
+ else
+ max += poolMax;
+ }
+ }
}
return new MemoryUsage(init, used, committed, max);
}
diff --git a/libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java b/libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java
index 0a4204a6d57..477329f0aed 100644
--- a/libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java
+++ b/libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java
@@ -56,10 +56,10 @@ import java.util.List;
final class VMMemoryManagerMXBeanImpl
{
- /**
+ /**
* Returns an array containing the names of the memory pools
* this memory manager manages.
- *
+ *
* @param name the name of the memory manager.
* @return an array containing the name of each memory pool
* this manager is responsible for.
@@ -70,14 +70,14 @@ final class VMMemoryManagerMXBeanImpl
Iterator beans = ManagementFactory.getMemoryPoolMXBeans().iterator();
while (beans.hasNext())
{
- MemoryPoolMXBean bean = (MemoryPoolMXBean) beans.next();
- String[] managers = bean.getMemoryManagerNames();
- for (int a = 0; a < managers.length; ++a)
- if (managers[a].equals(name))
- {
- managedPools.add(bean.getName());
- break;
- }
+ MemoryPoolMXBean bean = (MemoryPoolMXBean) beans.next();
+ String[] managers = bean.getMemoryManagerNames();
+ for (int a = 0; a < managers.length; ++a)
+ if (managers[a].equals(name))
+ {
+ managedPools.add(bean.getName());
+ break;
+ }
}
return (String[]) managedPools.toArray(new String[managedPools.size()]);
}
diff --git a/libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java b/libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java
index 723d4e89713..36cd2586a8e 100644
--- a/libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java
+++ b/libjava/classpath/vm/reference/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java
@@ -106,7 +106,7 @@ final class VMMemoryPoolMXBeanImpl
static native MemoryUsage getPeakUsage(String name);
/**
- * Returns the type of memory used by the specified pool.
+ * Returns the type of memory used by the specified pool.
* The value must be either "HEAP" or "NON_HEAP".
*
* @param name the name of the pool to obtain statistics on.
@@ -149,7 +149,7 @@ final class VMMemoryPoolMXBeanImpl
* @return the usage threshold count.
*/
static native long getUsageThresholdCount(String name);
-
+
/**
* Returns true if the specified pool is still valid i.e.
* it is still in use by the virtual machine.
@@ -158,7 +158,7 @@ final class VMMemoryPoolMXBeanImpl
* @return true if the pool is valid.
*/
static native boolean isValid(String name);
-
+
/**
* Resets the peak usage level to the current usage level for
* the specified pool.
@@ -173,7 +173,7 @@ final class VMMemoryPoolMXBeanImpl
* This is only called if this functionality is supported
* by the virtual machine (i.e. the appropriate property,
* <code>gnu.java.lang.management.CollectionUsageThresholdSupport</code>,
- * is defined).
+ * is defined).
*
* @param name the name of the pool to set the threshold of.
* @param threshold the new threshold level.
@@ -185,7 +185,7 @@ final class VMMemoryPoolMXBeanImpl
* This is only called if this functionality is supported
* by the virtual machine (i.e. the appropriate property,
* <code>gnu.java.lang.management.UsageThresholdSupport</code>,
- * is defined).
+ * is defined).
*
* @param name the name of the pool to set the threshold of.
* @param threshold the new threshold level.
diff --git a/libjava/classpath/vm/reference/gnu/java/lang/management/VMThreadMXBeanImpl.java b/libjava/classpath/vm/reference/gnu/java/lang/management/VMThreadMXBeanImpl.java
index 1c061aa9356..33448d9d534 100644
--- a/libjava/classpath/vm/reference/gnu/java/lang/management/VMThreadMXBeanImpl.java
+++ b/libjava/classpath/vm/reference/gnu/java/lang/management/VMThreadMXBeanImpl.java
@@ -40,7 +40,7 @@ package gnu.java.lang.management;
import java.lang.management.ThreadInfo;
/**
- * Provides access to information about the threads
+ * Provides access to information about the threads
* of the virtual machine. An instance of this bean is
* obtained by calling
* {@link ManagementFactory#getThreadMXBean()}.
@@ -87,13 +87,13 @@ final class VMThreadMXBeanImpl
filled = group.enumerate(threadList);
while (filled == arraySize)
{
- arraySize *= 2;
- threadList = new Thread[arraySize];
- filled = group.enumerate(threadList);
+ arraySize *= 2;
+ threadList = new Thread[arraySize];
+ filled = group.enumerate(threadList);
}
return threadList;
}
-
+
/**
* Returns the id of all live threads at the time of execution.
*
@@ -141,8 +141,8 @@ final class VMThreadMXBeanImpl
int daemonCount = 0;
for (int a = 0; a < filled; ++a)
{
- if (threadList[a].isDaemon())
- ++daemonCount;
+ if (threadList[a].isDaemon())
+ ++daemonCount;
}
return daemonCount;
}
@@ -205,7 +205,7 @@ final class VMThreadMXBeanImpl
* @return the corresponding <code>ThreadInfo</code>.
*/
static native ThreadInfo getThreadInfoForId(long id, int maxDepth);
-
+
/**
* Returns the number of nanoseconds of user time
* the specified thread has used in total. This is
@@ -217,7 +217,7 @@ final class VMThreadMXBeanImpl
* the thread.
*/
static native long getThreadUserTime(long id);
-
+
/**
* Returns the total number of threads that have
* been started over the lifetime of the virtual
OpenPOWER on IntegriCloud