equal
deleted
inserted
replaced
1005 bool Thread::is_in_stack(address adr) const { |
1005 bool Thread::is_in_stack(address adr) const { |
1006 assert(Thread::current() == this, "is_in_stack can only be called from current thread"); |
1006 assert(Thread::current() == this, "is_in_stack can only be called from current thread"); |
1007 address end = os::current_stack_pointer(); |
1007 address end = os::current_stack_pointer(); |
1008 // Allow non Java threads to call this without stack_base |
1008 // Allow non Java threads to call this without stack_base |
1009 if (_stack_base == NULL) return true; |
1009 if (_stack_base == NULL) return true; |
1010 if (stack_base() >= adr && adr >= end) return true; |
1010 if (stack_base() > adr && adr >= end) return true; |
1011 |
1011 |
1012 return false; |
1012 return false; |
1013 } |
1013 } |
1014 |
1014 |
1015 bool Thread::is_in_usable_stack(address adr) const { |
1015 bool Thread::is_in_usable_stack(address adr) const { |