Enhancements in JDK 6
|
Contents |
RetransformClasses
function 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.
FollowReferences
and
IterateThroughHeap
functions
have been added along with supporting types and constants.
The previous functionality is still supported but its use is discouraged.
GetConstantPool
,
GetClassVersionNumbers
and
IsModifiableClass
functions provide additional information about a class.
SetNativeMethodPrefix
and
SetNativeMethodPrefixes
functions
allow native methods to be instrumented by providing a JVM-aware mechanism for wrapping the native method.
AddToSystemClassLoaderSearch
function allows instrumentation support classes to be defined by the system class loader.
GetOwnedMonitorStackDepthInfo
function provides information about the monitors owned by the specified thread and the depth of the stack frame which locked them.
ResourceExhausted
event notifies the JVM when a critical resource (such as the JavaTM
platform heap) has been exhausted.
AddToBootstrapClassLoaderSearch
to be called in the live phase, and
considerable specification clean-up and clarification.
For detailed information about the changes, see the
Change History.
Copyright © 2006
Sun Microsystems, Inc.
All Rights Reserved.
|