Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
9059:17bf4d428955 | 9060:cc32ccaaf47f |
---|---|
77 assert(is_power_of_2(alignment), "no kidding ???"); | 77 assert(is_power_of_2(alignment), "no kidding ???"); |
78 return (size + alignment - 1) & ~(alignment - 1); | 78 return (size + alignment - 1) & ~(alignment - 1); |
79 } | 79 } |
80 | 80 |
81 | 81 |
82 static size_t align_to_allocation_size(size_t size) { | |
83 const size_t alignment = (size_t)os::vm_allocation_granularity(); | |
84 assert(is_power_of_2(alignment), "no kidding ???"); | |
85 return (size + alignment - 1) & ~(alignment - 1); | |
86 } | |
87 | |
88 | |
89 void CodeHeap::on_code_mapping(char* base, size_t size) { | 82 void CodeHeap::on_code_mapping(char* base, size_t size) { |
90 #ifdef LINUX | 83 #ifdef LINUX |
91 extern void linux_wrap_code(char* base, size_t size); | 84 extern void linux_wrap_code(char* base, size_t size); |
92 linux_wrap_code(base, size); | 85 linux_wrap_code(base, size); |
93 #endif | 86 #endif |