Mercurial > hg > graal-jvmci-8
comparison src/os_cpu/linux_zero/vm/thread_linux_zero.hpp @ 1512:6cfbdb113e52
6950617: Zero/Shark interface updates
Summary: Zero needs a couple of new methods to allow Shark to access the new frame anchor field.
Reviewed-by: twisti
Contributed-by: Gary Benson <gbenson@redhat.com>
author | twisti |
---|---|
date | Fri, 07 May 2010 04:20:56 -0700 |
parents | 0c5b3cf3c1f5 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1511:348346af6676 | 1512:6cfbdb113e52 |
---|---|
87 assert(has_last_Java_frame(), "must have last_Java_sp() when suspended"); | 87 assert(has_last_Java_frame(), "must have last_Java_sp() when suspended"); |
88 return frame(last_Java_fp(), last_Java_sp()); | 88 return frame(last_Java_fp(), last_Java_sp()); |
89 } | 89 } |
90 | 90 |
91 public: | 91 public: |
92 static ByteSize last_Java_fp_offset() { | |
93 return byte_offset_of(JavaThread, _anchor) + | |
94 JavaFrameAnchor::last_Java_fp_offset(); | |
95 } | |
96 | |
97 public: | |
92 // Check for pending suspend requests and pending asynchronous | 98 // Check for pending suspend requests and pending asynchronous |
93 // exceptions. There are separate accessors for these, but | 99 // exceptions. There are separate accessors for these, but |
94 // _suspend_flags is volatile so using them would be unsafe. | 100 // _suspend_flags is volatile so using them would be unsafe. |
95 bool has_special_condition_for_native_trans() { | 101 bool has_special_condition_for_native_trans() { |
96 return _suspend_flags != 0; | 102 return _suspend_flags != 0; |