< prev index next >

hotspot/src/share/vm/runtime/thread.hpp

Print this page




1525     _stack_overflow_limit =
1526       stack_end() + MAX2(JavaThread::stack_guard_zone_size(), JavaThread::stack_shadow_zone_size());
1527   }
1528 
1529   // Misc. accessors/mutators
1530   void set_do_not_unlock(void)                   { _do_not_unlock_if_synchronized = true; }
1531   void clr_do_not_unlock(void)                   { _do_not_unlock_if_synchronized = false; }
1532   bool do_not_unlock(void)                       { return _do_not_unlock_if_synchronized; }
1533 
1534 #ifndef PRODUCT
1535   void record_jump(address target, address instr, const char* file, int line);
1536 #endif // PRODUCT
1537 
1538   // For assembly stub generation
1539   static ByteSize threadObj_offset()             { return byte_offset_of(JavaThread, _threadObj); }
1540 #ifndef PRODUCT
1541   static ByteSize jmp_ring_index_offset()        { return byte_offset_of(JavaThread, _jmp_ring_index); }
1542   static ByteSize jmp_ring_offset()              { return byte_offset_of(JavaThread, _jmp_ring); }
1543 #endif // PRODUCT
1544   static ByteSize jni_environment_offset()       { return byte_offset_of(JavaThread, _jni_environment); }



1545   static ByteSize last_Java_sp_offset() {
1546     return byte_offset_of(JavaThread, _anchor) + JavaFrameAnchor::last_Java_sp_offset();
1547   }
1548   static ByteSize last_Java_pc_offset() {
1549     return byte_offset_of(JavaThread, _anchor) + JavaFrameAnchor::last_Java_pc_offset();
1550   }
1551   static ByteSize frame_anchor_offset() {
1552     return byte_offset_of(JavaThread, _anchor);
1553   }
1554   static ByteSize callee_target_offset()         { return byte_offset_of(JavaThread, _callee_target); }
1555   static ByteSize vm_result_offset()             { return byte_offset_of(JavaThread, _vm_result); }
1556   static ByteSize vm_result_2_offset()           { return byte_offset_of(JavaThread, _vm_result_2); }
1557   static ByteSize thread_state_offset()          { return byte_offset_of(JavaThread, _thread_state); }
1558   static ByteSize saved_exception_pc_offset()    { return byte_offset_of(JavaThread, _saved_exception_pc); }
1559   static ByteSize osthread_offset()              { return byte_offset_of(JavaThread, _osthread); }
1560 #if INCLUDE_JVMCI
1561   static ByteSize pending_deoptimization_offset() { return byte_offset_of(JavaThread, _pending_deoptimization); }
1562   static ByteSize pending_monitorenter_offset()  { return byte_offset_of(JavaThread, _pending_monitorenter); }
1563   static ByteSize pending_failed_speculation_offset() { return byte_offset_of(JavaThread, _pending_failed_speculation); }
1564   static ByteSize jvmci_alternate_call_target_offset() { return byte_offset_of(JavaThread, _jvmci._alternate_call_target); }




1525     _stack_overflow_limit =
1526       stack_end() + MAX2(JavaThread::stack_guard_zone_size(), JavaThread::stack_shadow_zone_size());
1527   }
1528 
1529   // Misc. accessors/mutators
1530   void set_do_not_unlock(void)                   { _do_not_unlock_if_synchronized = true; }
1531   void clr_do_not_unlock(void)                   { _do_not_unlock_if_synchronized = false; }
1532   bool do_not_unlock(void)                       { return _do_not_unlock_if_synchronized; }
1533 
1534 #ifndef PRODUCT
1535   void record_jump(address target, address instr, const char* file, int line);
1536 #endif // PRODUCT
1537 
1538   // For assembly stub generation
1539   static ByteSize threadObj_offset()             { return byte_offset_of(JavaThread, _threadObj); }
1540 #ifndef PRODUCT
1541   static ByteSize jmp_ring_index_offset()        { return byte_offset_of(JavaThread, _jmp_ring_index); }
1542   static ByteSize jmp_ring_offset()              { return byte_offset_of(JavaThread, _jmp_ring); }
1543 #endif // PRODUCT
1544   static ByteSize jni_environment_offset()       { return byte_offset_of(JavaThread, _jni_environment); }
1545   static ByteSize pending_jni_exception_check_fn_offset() {
1546     return byte_offset_of(JavaThread, _pending_jni_exception_check_fn);
1547   }
1548   static ByteSize last_Java_sp_offset() {
1549     return byte_offset_of(JavaThread, _anchor) + JavaFrameAnchor::last_Java_sp_offset();
1550   }
1551   static ByteSize last_Java_pc_offset() {
1552     return byte_offset_of(JavaThread, _anchor) + JavaFrameAnchor::last_Java_pc_offset();
1553   }
1554   static ByteSize frame_anchor_offset() {
1555     return byte_offset_of(JavaThread, _anchor);
1556   }
1557   static ByteSize callee_target_offset()         { return byte_offset_of(JavaThread, _callee_target); }
1558   static ByteSize vm_result_offset()             { return byte_offset_of(JavaThread, _vm_result); }
1559   static ByteSize vm_result_2_offset()           { return byte_offset_of(JavaThread, _vm_result_2); }
1560   static ByteSize thread_state_offset()          { return byte_offset_of(JavaThread, _thread_state); }
1561   static ByteSize saved_exception_pc_offset()    { return byte_offset_of(JavaThread, _saved_exception_pc); }
1562   static ByteSize osthread_offset()              { return byte_offset_of(JavaThread, _osthread); }
1563 #if INCLUDE_JVMCI
1564   static ByteSize pending_deoptimization_offset() { return byte_offset_of(JavaThread, _pending_deoptimization); }
1565   static ByteSize pending_monitorenter_offset()  { return byte_offset_of(JavaThread, _pending_monitorenter); }
1566   static ByteSize pending_failed_speculation_offset() { return byte_offset_of(JavaThread, _pending_failed_speculation); }
1567   static ByteSize jvmci_alternate_call_target_offset() { return byte_offset_of(JavaThread, _jvmci._alternate_call_target); }


< prev index next >