Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/thread.cpp @ 11146:e619a2766bcc
8016131: nsk/sysdict/vm/stress/chain tests crash the VM in 'entry_frame_is_first()'
Reviewed-by: jrose, kvn, mgronlun
author | rbackman |
---|---|
date | Wed, 12 Jun 2013 11:17:39 +0200 |
parents | 2e8f19c2feef |
children | 5e3b6f79d280 |
comparison
equal
deleted
inserted
replaced
11145:39deebbc90b3 | 11146:e619a2766bcc |
---|---|
952 | 952 |
953 return false; | 953 return false; |
954 } | 954 } |
955 | 955 |
956 | 956 |
957 bool Thread::is_in_usable_stack(address adr) const { | |
958 size_t stack_guard_size = os::uses_stack_guard_pages() ? (StackYellowPages + StackRedPages) * os::vm_page_size() : 0; | |
959 size_t usable_stack_size = _stack_size - stack_guard_size; | |
960 | |
961 return ((adr < stack_base()) && (adr >= stack_base() - usable_stack_size)); | |
962 } | |
963 | |
964 | |
957 // We had to move these methods here, because vm threads get into ObjectSynchronizer::enter | 965 // We had to move these methods here, because vm threads get into ObjectSynchronizer::enter |
958 // However, there is a note in JavaThread::is_lock_owned() about the VM threads not being | 966 // However, there is a note in JavaThread::is_lock_owned() about the VM threads not being |
959 // used for compilation in the future. If that change is made, the need for these methods | 967 // used for compilation in the future. If that change is made, the need for these methods |
960 // should be revisited, and they should be removed if possible. | 968 // should be revisited, and they should be removed if possible. |
961 | 969 |