mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8003310: Enable -Wunused-function when compiling with gcc
Add the -Wunused-function flag and remove a number of unused functions. Reviewed-by: dholmes, coleenp, kvn
This commit is contained in:
parent
33f6dd2215
commit
eeb83733a6
29 changed files with 92 additions and 266 deletions
|
@ -608,18 +608,6 @@ extern "C" nmethod* findnm(intptr_t addr) {
|
|||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue