Mercurial > hg > graal-jvmci-8
comparison src/share/vm/utilities/debug.cpp @ 9088:89e4d67fdd2a
Merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Fri, 12 Apr 2013 14:05:42 +0200 |
parents | b9a918201d47 cc32ccaaf47f |
children | 836a62f43af9 |
comparison
equal
deleted
inserted
replaced
9037:b008f40b67d0 | 9088:89e4d67fdd2a |
---|---|
606 extern "C" nmethod* findnm(intptr_t addr) { | 606 extern "C" nmethod* findnm(intptr_t addr) { |
607 Command c("findnm"); | 607 Command c("findnm"); |
608 return CodeCache::find_nmethod((address)addr); | 608 return CodeCache::find_nmethod((address)addr); |
609 } | 609 } |
610 | 610 |
611 static address same_page(address x, address y) { | |
612 intptr_t page_bits = -os::vm_page_size(); | |
613 if ((intptr_t(x) & page_bits) == (intptr_t(y) & page_bits)) { | |
614 return x; | |
615 } else if (x > y) { | |
616 return (address)(intptr_t(y) | ~page_bits) + 1; | |
617 } else { | |
618 return (address)(intptr_t(y) & page_bits); | |
619 } | |
620 } | |
621 | |
622 | |
623 // Another interface that isn't ambiguous in dbx. | 611 // Another interface that isn't ambiguous in dbx. |
624 // Can we someday rename the other find to hsfind? | 612 // Can we someday rename the other find to hsfind? |
625 extern "C" void hsfind(intptr_t x) { | 613 extern "C" void hsfind(intptr_t x) { |
626 Command c("hsfind"); | 614 Command c("hsfind"); |
627 os::print_location(tty, x, false); | 615 os::print_location(tty, x, false); |