Mercurial > hg > truffle
diff src/share/vm/runtime/thread.cpp @ 1688:2dfd013a7465
6975078: assert(allocated_on_res_area() || allocated_on_C_heap() || allocated_on_arena()
Summary: Pass the check in ResourceObj() if _allocation value is already set and object is allocated on stack.
Reviewed-by: dholmes, johnc
author | kvn |
---|---|
date | Mon, 09 Aug 2010 15:17:05 -0700 |
parents | 2389669474a6 |
children | f4f596978298 |
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.cpp Fri Aug 06 11:53:28 2010 -0700 +++ b/src/share/vm/runtime/thread.cpp Mon Aug 09 15:17:05 2010 -0700 @@ -807,7 +807,7 @@ // should be revisited, and they should be removed if possible. bool Thread::is_lock_owned(address adr) const { - return (_stack_base >= adr && adr >= (_stack_base - _stack_size)); + return on_local_stack(adr); } bool Thread::set_as_starting_thread() {