Mercurial > hg > truffle
diff src/share/vm/utilities/debug.cpp @ 9062:8be1318fbe77
Merge
author | dcubed |
---|---|
date | Fri, 05 Apr 2013 10:38:08 -0700 |
parents | cc32ccaaf47f |
children | 89e4d67fdd2a 746b070f5022 |
line wrap: on
line diff
--- a/src/share/vm/utilities/debug.cpp Thu Apr 04 21:15:43 2013 -0700 +++ b/src/share/vm/utilities/debug.cpp Fri Apr 05 10:38:08 2013 -0700 @@ -608,18 +608,6 @@ return CodeCache::find_nmethod((address)addr); } -static address same_page(address x, address y) { - intptr_t page_bits = -os::vm_page_size(); - if ((intptr_t(x) & page_bits) == (intptr_t(y) & page_bits)) { - return x; - } else if (x > y) { - return (address)(intptr_t(y) | ~page_bits) + 1; - } else { - return (address)(intptr_t(y) & page_bits); - } -} - - // Another interface that isn't ambiguous in dbx. // Can we someday rename the other find to hsfind? extern "C" void hsfind(intptr_t x) {