-
Bug
-
Resolution: Fixed
-
P1
-
6
1) To be able to determine time spent waiting/sleeping we use NativeMethodBind to intercept Thread.sleep and Object.wait, In the case of late attach, we cannot use NativeMethodBind. We need to be able to instrument native methods (such as mentioned Object.wait and Thread.sleep).
2) RedefineClasses/RetransformClasses doesn't work for classes in the shared archive. When the NetBeans Profiler is started at launch time, class sharing is automatically disabled by the setting of capabilities. In the case of late attach, some classes will be in the shared archive and they can not be instrumented. We need a way how to instrument classes in shared archive.
The shared archive part of this bug should be tracked via the following:
5002268 4/3 Allow class sharing use with RedefineClasses
- duplicates
-
JDK-6409915 assertion failure in compiler on retransformation -- old methods not in context
- Closed
-
JDK-6341303 JVMTI Spec: Need a way how to rebind Object.wait and Thread.sleep with late attach
- Closed
- relates to
-
JDK-6667089 multiple redefinitions of a class break reflection
- Closed
-
JDK-6862945 conversion of jmethodID to methodOop in JVMTI is too expensive
- Closed
-
JDK-5002268 Allow class sharing use with RedefineClasses
- Resolved
-
JDK-6430256 removing native method wrapper via retransformation fails
- Resolved
-
JDK-6875393 JNI itable index cache is broken
- Closed
-
JDK-8192936 RI does not follow the JVMTI RedefineClasses spec that is too strict in the definition
- Closed
-
JDK-8313332 Simplify lazy jmethodID cache in InstanceKlass
- Resolved