comparison src/share/vm/memory/heap.cpp @ 9088:89e4d67fdd2a

Merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Fri, 12 Apr 2013 14:05:42 +0200
parents 3c29f7da5c66 cc32ccaaf47f
children 836a62f43af9
comparison
equal deleted inserted replaced
9037:b008f40b67d0 9088:89e4d67fdd2a
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