Mercurial > hg > graal-jvmci-8
diff src/share/vm/memory/heap.cpp @ 9060:cc32ccaaf47f
8003310: Enable -Wunused-function when compiling with gcc
Summary: Add the -Wunused-function flag and remove a number of unused functions.
Reviewed-by: dholmes, coleenp, kvn
author | mikael |
---|---|
date | Thu, 04 Apr 2013 10:01:26 -0700 |
parents | b9a9ed0f8eeb |
children | 89e4d67fdd2a a7fb14888912 |
line wrap: on
line diff
--- a/src/share/vm/memory/heap.cpp Wed Apr 03 16:43:09 2013 -0700 +++ b/src/share/vm/memory/heap.cpp Thu Apr 04 10:01:26 2013 -0700 @@ -79,13 +79,6 @@ } -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);