comparison src/os/linux/vm/globals_linux.hpp @ 3318:188c9a5d6a6d

7040485: Use transparent huge page on linux by default Summary: Turn on UseLargePages by default but try only HugeTLBFS method if it is not explicitly specified on the command line. Reviewed-by: ysr
author iveresov
date Fri, 29 Apr 2011 12:39:32 -0700
parents 139667d9836a
children 9058789475af
comparison
equal deleted inserted replaced
3315:da0fffdcc453 3318:188c9a5d6a6d
1 /* 1 /*
2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
45 45
46 // 46 //
47 // Defines Linux-specific default values. The flags are available on all 47 // Defines Linux-specific default values. The flags are available on all
48 // platforms, but they may have different default values on other platforms. 48 // platforms, but they may have different default values on other platforms.
49 // 49 //
50 define_pd_global(bool, UseLargePages, false); 50 define_pd_global(bool, UseLargePages, true);
51 define_pd_global(bool, UseLargePagesIndividualAllocation, false); 51 define_pd_global(bool, UseLargePagesIndividualAllocation, false);
52 define_pd_global(bool, UseOSErrorReporting, false); 52 define_pd_global(bool, UseOSErrorReporting, false);
53 define_pd_global(bool, UseThreadPriorities, true) ; 53 define_pd_global(bool, UseThreadPriorities, true) ;
54 54
55 #endif // OS_LINUX_VM_GLOBALS_LINUX_HPP 55 #endif // OS_LINUX_VM_GLOBALS_LINUX_HPP