This commit is contained in:
Tom Rodriguez 2010-08-09 17:51:56 -07:00
commit 68ff9b2b00
31 changed files with 245 additions and 124 deletions

View file

@ -2442,6 +2442,10 @@ class CommandLineFlags {
"Call fatal if this exception is thrown. Example: " \
"java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \
\
notproduct(ccstr, AbortVMOnExceptionMessage, NULL, \
"Call fatal if the exception pointed by AbortVMOnException " \
"has this message.") \
\
develop(bool, DebugVtables, false, \
"add debugging code to vtable dispatch") \
\

View file

@ -807,7 +807,7 @@ bool Thread::is_in_stack(address adr) const {
// 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() {

View file

@ -446,6 +446,11 @@ public:
void set_stack_size(size_t size) { _stack_size = size; }
void record_stack_base_and_size();
bool on_local_stack(address adr) const {
/* QQQ this has knowledge of direction, ought to be a stack method */
return (_stack_base >= adr && adr >= (_stack_base - _stack_size));
}
int lgrp_id() const { return _lgrp_id; }
void set_lgrp_id(int value) { _lgrp_id = value; }