18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #include "precompiled.hpp" 26 #include "code/debugInfoRec.hpp" 27 #include "code/pcDesc.hpp" 28 #include "gc/shared/collectedHeap.inline.hpp" 29 #include "gc/shared/space.hpp" 30 #include "memory/universe.inline.hpp" 31 #include "oops/oop.inline.hpp" 32 #include "prims/forte.hpp" 33 #include "runtime/javaCalls.hpp" 34 #include "runtime/thread.inline.hpp" 35 #include "runtime/vframe.hpp" 36 #include "runtime/vframeArray.hpp" 37 38 // call frame copied from old .h file and renamed 39 typedef struct { 40 jint lineno; // line number in the source file 41 jmethodID method_id; // method executed in this frame 42 } ASGCT_CallFrame; 43 44 // call trace copied from old .h file and renamed 45 typedef struct { 46 JNIEnv *env_id; // Env where trace was recorded 47 jint num_frames; // number of frames in this trace 48 ASGCT_CallFrame *frames; // frames 49 } ASGCT_CallTrace; 50 51 // These name match the names reported by the forte quality kit 52 enum { 53 ticks_no_Java_frame = 0, 54 ticks_no_class_load = -1, 55 ticks_GC_active = -2, 56 ticks_unknown_not_Java = -3, 57 ticks_not_walkable_not_Java = -4, 58 ticks_unknown_Java = -5, 59 ticks_not_walkable_Java = -6, 60 ticks_unknown_state = -7, 61 ticks_thread_exit = -8, 62 ticks_deopt = -9, 63 ticks_safepoint = -10 64 }; 65 66 #if INCLUDE_JVMTI 67 68 //------------------------------------------------------- 69 70 // Native interfaces for use by Forte tools. | 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #include "precompiled.hpp" 26 #include "code/debugInfoRec.hpp" 27 #include "code/pcDesc.hpp" 28 #include "gc/shared/collectedHeap.inline.hpp" 29 #include "gc/shared/space.hpp" 30 #include "memory/universe.inline.hpp" 31 #include "oops/oop.inline.hpp" 32 #include "prims/forte.hpp" 33 #include "runtime/javaCalls.hpp" 34 #include "runtime/thread.inline.hpp" 35 #include "runtime/vframe.hpp" 36 #include "runtime/vframeArray.hpp" 37 38 // These name match the names reported by the forte quality kit 39 enum { 40 ticks_no_Java_frame = 0, 41 ticks_no_class_load = -1, 42 ticks_GC_active = -2, 43 ticks_unknown_not_Java = -3, 44 ticks_not_walkable_not_Java = -4, 45 ticks_unknown_Java = -5, 46 ticks_not_walkable_Java = -6, 47 ticks_unknown_state = -7, 48 ticks_thread_exit = -8, 49 ticks_deopt = -9, 50 ticks_safepoint = -10 51 }; 52 53 #if INCLUDE_JVMTI 54 55 //------------------------------------------------------- 56 57 // Native interfaces for use by Forte tools. |