mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +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
|
@ -79,13 +79,6 @@ static size_t align_to_page_size(size_t size) {
|
|||
}
|
||||
|
||||
|
||||
static size_t align_to_allocation_size(size_t size) {
|
||||
const size_t alignment = (size_t)os::vm_allocation_granularity();
|
||||
assert(is_power_of_2(alignment), "no kidding ???");
|
||||
return (size + alignment - 1) & ~(alignment - 1);
|
||||
}
|
||||
|
||||
|
||||
void CodeHeap::on_code_mapping(char* base, size_t size) {
|
||||
#ifdef LINUX
|
||||
extern void linux_wrap_code(char* base, size_t size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue