hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
changeset 46619 a3919f5e8d2b
parent 42905 1af223983f82
child 46625 edefffab74e2
--- a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp	Wed Apr 12 17:53:18 2017 +0200
+++ b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp	Tue Jul 04 15:58:10 2017 +0200
@@ -350,7 +350,7 @@
   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
@@ -361,7 +361,7 @@
   // 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