Enhancements in JDK 6
RetransformClassesfunction has been added. It is suited to operations such as adding instrumentation to methods. Support for retransformation means that access to the original class file is no longer required in order to instrument loaded classes. It can easily remove the applied transformation and it is designed to work in a multi-agent environment.
IterateThroughHeapfunctions have been added along with supporting types and constants. The previous functionality is still supported but its use is discouraged.
IsModifiableClassfunctions provide additional information about a class.
SetNativeMethodPrefixesfunctions allow native methods to be instrumented by providing a JVM-aware mechanism for wrapping the native method.
AddToSystemClassLoaderSearchfunction allows instrumentation support classes to be defined by the system class loader.
GetOwnedMonitorStackDepthInfofunction provides information about the monitors owned by the specified thread and the depth of the stack frame which locked them.
ResourceExhaustedevent notifies the JVM when a critical resource (such as the JavaTM platform heap) has been exhausted.
AddToBootstrapClassLoaderSearchto be called in the live phase, and considerable specification clean-up and clarification. For detailed information about the changes, see the Change History.
Copyright © 1993, 2011, Oracle and/or its affiliates. All rights reserved.