hotspot/src/cpu/x86/vm/nativeInst_x86.cpp
changeset 363 99d43e8a76ad
parent 1 489c9b5090e2
child 670 ddf3e9583f2f
--- a/hotspot/src/cpu/x86/vm/nativeInst_x86.cpp	Wed Apr 16 17:36:29 2008 -0400
+++ b/hotspot/src/cpu/x86/vm/nativeInst_x86.cpp	Thu Apr 17 22:18:15 2008 -0400
@@ -472,3 +472,7 @@
   else
     return addr_at(0) + length + sbyte_at(offset);
 }
+
+bool NativeInstruction::is_dtrace_trap() {
+  return (*(int32_t*)this & 0xff) == 0xcc;
+}