mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
6770949: minor tweaks before 6655638
Minor cleanups & tuning of array.hpp, debug.cpp, growableArray.hpp, hashtable.cpp Reviewed-by: kvn
This commit is contained in:
parent
849e0ffb04
commit
4e2c4fb4bd
4 changed files with 63 additions and 20 deletions
|
@ -567,7 +567,7 @@ static void find(intptr_t x, bool print_pc) {
|
|||
}
|
||||
// the InlineCacheBuffer is using stubs generated into a buffer blob
|
||||
if (InlineCacheBuffer::contains(addr)) {
|
||||
tty->print_cr(INTPTR_FORMAT "is pointing into InlineCacheBuffer", addr);
|
||||
tty->print_cr(INTPTR_FORMAT " is pointing into InlineCacheBuffer", addr);
|
||||
return;
|
||||
}
|
||||
VtableStub* v = VtableStubs::stub_containing(addr);
|
||||
|
@ -595,7 +595,7 @@ static void find(intptr_t x, bool print_pc) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (Universe::heap()->is_in_reserved(addr)) {
|
||||
if (Universe::heap()->is_in(addr)) {
|
||||
HeapWord* p = Universe::heap()->block_start(addr);
|
||||
bool print = false;
|
||||
// If we couldn't find it it just may mean that heap wasn't parseable
|
||||
|
@ -621,24 +621,28 @@ static void find(intptr_t x, bool print_pc) {
|
|||
}
|
||||
return;
|
||||
}
|
||||
} else if (Universe::heap()->is_in_reserved(addr)) {
|
||||
tty->print_cr(INTPTR_FORMAT " is an unallocated location in the heap", addr);
|
||||
return;
|
||||
}
|
||||
|
||||
if (JNIHandles::is_global_handle((jobject) addr)) {
|
||||
tty->print_cr(INTPTR_FORMAT "is a global jni handle", addr);
|
||||
tty->print_cr(INTPTR_FORMAT " is a global jni handle", addr);
|
||||
return;
|
||||
}
|
||||
if (JNIHandles::is_weak_global_handle((jobject) addr)) {
|
||||
tty->print_cr(INTPTR_FORMAT "is a weak global jni handle", addr);
|
||||
tty->print_cr(INTPTR_FORMAT " is a weak global jni handle", addr);
|
||||
return;
|
||||
}
|
||||
if (JNIHandleBlock::any_contains((jobject) addr)) {
|
||||
tty->print_cr(INTPTR_FORMAT "is a local jni handle", addr);
|
||||
tty->print_cr(INTPTR_FORMAT " is a local jni handle", addr);
|
||||
return;
|
||||
}
|
||||
|
||||
for(JavaThread *thread = Threads::first(); thread; thread = thread->next()) {
|
||||
// Check for priviledge stack
|
||||
// Check for privilege stack
|
||||
if (thread->privileged_stack_top() != NULL && thread->privileged_stack_top()->contains(addr)) {
|
||||
tty->print_cr(INTPTR_FORMAT "is pointing into the priviledge stack for thread: " INTPTR_FORMAT, addr, thread);
|
||||
tty->print_cr(INTPTR_FORMAT " is pointing into the privilege stack for thread: " INTPTR_FORMAT, addr, thread);
|
||||
return;
|
||||
}
|
||||
// If the addr is a java thread print information about that.
|
||||
|
@ -659,7 +663,7 @@ static void find(intptr_t x, bool print_pc) {
|
|||
return;
|
||||
}
|
||||
|
||||
tty->print_cr(INTPTR_FORMAT "is pointing to unknown location", addr);
|
||||
tty->print_cr(INTPTR_FORMAT " is pointing to unknown location", addr);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue