< prev index next >

src/os_cpu/linux_zero/vm/os_linux_zero.cpp

Print this page

        

@@ -348,22 +348,22 @@
   size_t guard_bytes;
   res = pthread_attr_getguardsize(&attr, &guard_bytes);
   if (res != 0) {
     fatal("pthread_attr_getguardsize failed with errno = %d", res);
   }
-  int guard_pages = align_size_up(guard_bytes, page_bytes) / page_bytes;
+  int guard_pages = align_up(guard_bytes, page_bytes) / page_bytes;
   assert(guard_bytes == guard_pages * page_bytes, "unaligned guard");
 
 #ifdef IA64
   // IA64 has two stacks sharing the same area of memory, a normal
   // stack growing downwards and a register stack growing upwards.
   // Guard pages, if present, are in the centre.  This code splits
   // the stack in two even without guard pages, though in theory
   // there's nothing to stop us allocating more to the normal stack
   // or more to the register stack if one or the other were found
   // to grow faster.
-  int total_pages = align_size_down(stack_bytes, page_bytes) / page_bytes;
+  int total_pages = align_down(stack_bytes, page_bytes) / page_bytes;
   stack_bottom += (total_pages - guard_pages) / 2 * page_bytes;
 #endif // IA64
 
   stack_bottom += guard_bytes;
 
< prev index next >