865 // Given a state, the xxx_trans state can always be found by adding 1.
866 //
867 enum JavaThreadState {
868 _thread_uninitialized = 0, // should never happen (missing initialization)
869 _thread_new = 2, // just starting up, i.e., in process of being initialized
870 _thread_new_trans = 3, // corresponding transition state (not used, included for completness)
871 _thread_in_native = 4, // running in native code
872 _thread_in_native_trans = 5, // corresponding transition state
873 _thread_in_vm = 6, // running in VM
874 _thread_in_vm_trans = 7, // corresponding transition state
875 _thread_in_Java = 8, // running in Java or in stub code
876 _thread_in_Java_trans = 9, // corresponding transition state (not used, included for completness)
877 _thread_blocked = 10, // blocked in vm
878 _thread_blocked_trans = 11, // corresponding transition state
879 _thread_max_state = 12 // maximum thread state+1 - used for statistics allocation
880 };
881
882
883 // Handy constants for deciding which compiler mode to use.
884 enum MethodCompilation {
885 InvocationEntryBci = -1, // i.e., not a on-stack replacement compilation
886 InvalidOSREntryBci = -2
887 };
888
889 // Enumeration to distinguish tiers of compilation
890 enum CompLevel {
891 CompLevel_any = -1,
892 CompLevel_all = -1,
893 CompLevel_none = 0, // Interpreter
894 CompLevel_simple = 1, // C1
895 CompLevel_limited_profile = 2, // C1, invocation & backedge counters
896 CompLevel_full_profile = 3, // C1, invocation & backedge counters + mdo
897 CompLevel_full_optimization = 4, // C2 or Shark
898
899 #if defined(COMPILER2) || defined(SHARK)
900 CompLevel_highest_tier = CompLevel_full_optimization, // pure C2 and tiered
901 #elif defined(COMPILER1)
902 CompLevel_highest_tier = CompLevel_simple, // pure C1
903 #else
904 CompLevel_highest_tier = CompLevel_none,
905 #endif
906
|
865 // Given a state, the xxx_trans state can always be found by adding 1.
866 //
867 enum JavaThreadState {
868 _thread_uninitialized = 0, // should never happen (missing initialization)
869 _thread_new = 2, // just starting up, i.e., in process of being initialized
870 _thread_new_trans = 3, // corresponding transition state (not used, included for completness)
871 _thread_in_native = 4, // running in native code
872 _thread_in_native_trans = 5, // corresponding transition state
873 _thread_in_vm = 6, // running in VM
874 _thread_in_vm_trans = 7, // corresponding transition state
875 _thread_in_Java = 8, // running in Java or in stub code
876 _thread_in_Java_trans = 9, // corresponding transition state (not used, included for completness)
877 _thread_blocked = 10, // blocked in vm
878 _thread_blocked_trans = 11, // corresponding transition state
879 _thread_max_state = 12 // maximum thread state+1 - used for statistics allocation
880 };
881
882
883 // Handy constants for deciding which compiler mode to use.
884 enum MethodCompilation {
885 InvocationEntryBci = -1 // i.e., not a on-stack replacement compilation
886 };
887
888 // Enumeration to distinguish tiers of compilation
889 enum CompLevel {
890 CompLevel_any = -1,
891 CompLevel_all = -1,
892 CompLevel_none = 0, // Interpreter
893 CompLevel_simple = 1, // C1
894 CompLevel_limited_profile = 2, // C1, invocation & backedge counters
895 CompLevel_full_profile = 3, // C1, invocation & backedge counters + mdo
896 CompLevel_full_optimization = 4, // C2 or Shark
897
898 #if defined(COMPILER2) || defined(SHARK)
899 CompLevel_highest_tier = CompLevel_full_optimization, // pure C2 and tiered
900 #elif defined(COMPILER1)
901 CompLevel_highest_tier = CompLevel_simple, // pure C1
902 #else
903 CompLevel_highest_tier = CompLevel_none,
904 #endif
905
|