diff src/os/linux/vm/os_linux.hpp @ 14436:b0133e4187d3

8028471: PPC64 (part 215): opto: Extend ImplicitNullCheck optimization. Summary: Fixed Implicit NULL check optimization for AIX, where the page at address '0' is only write-protected. Reviewed-by: kvn
author goetz
date Thu, 21 Nov 2013 18:29:34 -0800
parents 2e6938dd68f2
children bb9356ec5967 833b0f92429a
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.hpp	Thu Nov 21 12:30:35 2013 -0800
+++ b/src/os/linux/vm/os_linux.hpp	Thu Nov 21 18:29:34 2013 -0800
@@ -30,6 +30,9 @@
 /* pthread_getattr_np comes with LinuxThreads-0.9-7 on RedHat 7.1 */
 typedef int (*pthread_getattr_func_type) (pthread_t, pthread_attr_t *);
 
+// Information about the protection of the page at address '0' on this os.
+static bool zero_page_read_protected() { return true; }
+
 class Linux {
   friend class os;
   friend class TestReserveMemorySpecial;