Lines Matching defs:alignment

49 ReservedSpace::ReservedSpace(size_t size, size_t alignment,
53 initialize(size+noaccess_prefix, alignment, large, requested_address,
57 ReservedSpace::ReservedSpace(size_t size, size_t alignment,
60 initialize(size, alignment, large, NULL, 0, executable);
79 return NULL; // Cannot do proper alignment.
103 // is the only addr that can be passed to os::release_memory(). If alignment
145 assert(res >= raw, "alignment decreased start addr");
147 "alignment increased end addr");
148 assert((res & (prefix_align - 1)) == 0, "bad alignment of prefix");
150 "bad alignment of suffix");
215 // front, the compound alignment normally done by this method is unnecessary.
246 // Check whether the result has the needed alignment (unlikely unless
250 // Wrong alignment. Release, allocate more space and do manual alignment.
270 // As a result of the alignment constraints, the allocated addr differs
284 void ReservedSpace::initialize(size_t size, size_t alignment, bool large,
291 assert((alignment & (granularity - 1)) == 0,
292 "alignment not aligned to os::vm_allocation_granularity()");
293 assert(alignment == 0 || is_power_of_2((intptr_t)alignment),
298 alignment = MAX2(alignment, (size_t)os::vm_page_size());
300 // Assert that if noaccess_prefix is used, it is the same as alignment.
302 noaccess_prefix == alignment, "noaccess prefix wrong");
333 // Check alignment constraints
334 assert((uintptr_t) base % alignment == 0,
365 base = os::reserve_memory(size, NULL, alignment);
370 // Check alignment constraints
371 if ((((size_t)base + noaccess_prefix) & (alignment - 1)) != 0) {
376 size = align_size_up(size, alignment);
377 base = os::reserve_memory_aligned(size, alignment);
381 // As a result of the alignment constraints, the allocated base differs
392 _alignment = alignment;
395 // Assert that if noaccess_prefix is used, it is the same as alignment.
406 ReservedSpace::ReservedSpace(char* base, size_t size, size_t alignment,
413 _alignment = alignment;
420 ReservedSpace ReservedSpace::first_part(size_t partition_size, size_t alignment,
426 ReservedSpace result(base(), partition_size, alignment, special(),
433 ReservedSpace::last_part(size_t partition_size, size_t alignment) {
436 alignment, special(), executable());
504 "must be exactly of required size and alignment");
507 ReservedHeapSpace::ReservedHeapSpace(size_t size, size_t alignment,
509 ReservedSpace(size, alignment, large,
513 lcm(os::vm_page_size(), alignment) : 0) {
590 // No attempt is made to force large page alignment at the very top and
698 // Align the new highs based on the regions alignment. lower and upper
699 // alignment will always be default page size. middle alignment will be
829 // Align address to region's alignment