src/share/vm/prims/unsafe.cpp
Print this page
rev 5893 : 8034080: Remove the USDT1 dtrace code from Hotspot
@@ -42,15 +42,10 @@
/*
* Implementation of class sun.misc.Unsafe
*/
-#ifndef USDT2
-HS_DTRACE_PROBE_DECL3(hotspot, thread__park__begin, uintptr_t, int, long long);
-HS_DTRACE_PROBE_DECL1(hotspot, thread__park__end, uintptr_t);
-HS_DTRACE_PROBE_DECL1(hotspot, thread__unpark, uintptr_t);
-#endif /* !USDT2 */
#define MAX_OBJECT_SIZE \
( arrayOopDesc::header_size(T_DOUBLE) * HeapWordSize \
+ ((julong)max_jint * sizeof(double)) )
@@ -1204,24 +1199,16 @@
UNSAFE_END
UNSAFE_ENTRY(void, Unsafe_Park(JNIEnv *env, jobject unsafe, jboolean isAbsolute, jlong time))
UnsafeWrapper("Unsafe_Park");
EventThreadPark event;
-#ifndef USDT2
- HS_DTRACE_PROBE3(hotspot, thread__park__begin, thread->parker(), (int) isAbsolute, time);
-#else /* USDT2 */
- HOTSPOT_THREAD_PARK_BEGIN(
- (uintptr_t) thread->parker(), (int) isAbsolute, time);
-#endif /* USDT2 */
+ HOTSPOT_THREAD_PARK_BEGIN((uintptr_t) thread->parker(), (int) isAbsolute, time);
+
JavaThreadParkedState jtps(thread, time != 0);
thread->parker()->park(isAbsolute != 0, time);
-#ifndef USDT2
- HS_DTRACE_PROBE1(hotspot, thread__park__end, thread->parker());
-#else /* USDT2 */
- HOTSPOT_THREAD_PARK_END(
- (uintptr_t) thread->parker());
-#endif /* USDT2 */
+
+ HOTSPOT_THREAD_PARK_END((uintptr_t) thread->parker());
if (event.should_commit()) {
oop obj = thread->current_park_blocker();
event.set_klass((obj != NULL) ? obj->klass() : NULL);
event.set_timeout(time);
event.set_address((obj != NULL) ? (TYPE_ADDRESS) cast_from_oop<uintptr_t>(obj) : 0);
@@ -1256,16 +1243,11 @@
}
}
}
}
if (p != NULL) {
-#ifndef USDT2
- HS_DTRACE_PROBE1(hotspot, thread__unpark, p);
-#else /* USDT2 */
- HOTSPOT_THREAD_UNPARK(
- (uintptr_t) p);
-#endif /* USDT2 */
+ HOTSPOT_THREAD_UNPARK((uintptr_t) p);
p->unpark();
}
UNSAFE_END
UNSAFE_ENTRY(jint, Unsafe_Loadavg(JNIEnv *env, jobject unsafe, jdoubleArray loadavg, jint nelem))