Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/heap.cpp @ 9062:8be1318fbe77
Merge
author | dcubed |
---|---|
date | Fri, 05 Apr 2013 10:38:08 -0700 |
parents | cc32ccaaf47f |
children | 89e4d67fdd2a a7fb14888912 |
comparison
equal
deleted
inserted
replaced
9055:dcdeb150988c | 9062:8be1318fbe77 |
---|---|
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 |