1 /* 2 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. 3 * Copyright (c) 2014, Red Hat Inc. All rights reserved. 4 * Copyright (c) 2015, Linaro Ltd. All rights reserved. 5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 * 7 * This code is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License version 2 only, as 9 * published by the Free Software Foundation. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 * 25 */ 26 27 #ifndef CPU_AARCH32_VM_GLOBALS_AARCH32_HPP 28 #define CPU_AARCH32_VM_GLOBALS_AARCH32_HPP 29 30 #include "utilities/globalDefinitions.hpp" 31 #include "utilities/macros.hpp" 32 33 // Sets the default values for platform dependent flags used by the runtime system. 34 // (see globals.hpp) 35 36 define_pd_global(bool, ConvertSleepToYield, true); 37 define_pd_global(bool, ShareVtableStubs, true); 38 define_pd_global(bool, CountInterpCalls, true); 39 define_pd_global(bool, NeedsDeoptSuspend, false); // only register window machines need this 40 41 define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks 42 define_pd_global(bool, TrapBasedNullChecks, false); 43 define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs past to check cast 44 45 // See 4827828 for this change. There is no globals_core_i486.hpp. I can't 46 // assign a different value for C2 without touching a number of files. Use 47 // #ifdef to minimize the change as it's late in Mantis. -- FIXME. 48 // c1 doesn't have this problem because the fix to 4858033 assures us 49 // the the vep is aligned at CodeEntryAlignment whereas c2 only aligns 50 // the uep and the vep doesn't get real alignment but just slops on by 51 // only assured that the entry instruction meets the 5 byte size requirement. 52 //#ifdef COMPILER2 53 //define_pd_global(intx, CodeEntryAlignment, 64); 54 //#else 55 define_pd_global(intx, CodeEntryAlignment, 32); 56 //#endif // COMPILER2 57 define_pd_global(intx, OptoLoopAlignment, 32); 58 define_pd_global(intx, InlineFrequencyCount, 100); 59 60 define_pd_global(intx, StackYellowPages, 2); 61 define_pd_global(intx, StackRedPages, 1); 62 63 define_pd_global(intx, StackShadowPages, 4 DEBUG_ONLY(+5)); 64 65 define_pd_global(intx, PreInflateSpin, 10); 66 67 define_pd_global(bool, RewriteBytecodes, true); 68 define_pd_global(bool, RewriteFrequentPairs, true); 69 70 define_pd_global(bool, PreserveFramePointer, false); 71 72 // GC Ergo Flags 73 define_pd_global(uintx, CMSYoungGenPerWorker, 64*M); // default max size of CMS young gen, per GC worker thread 74 75 define_pd_global(uintx, TypeProfileLevel, 111); 76 77 // FIXME this turned out to be needed for the core build too? 78 //#if defined(COMPILER1) || defined(COMPILER2) 79 define_pd_global(intx, InlineSmallCode, 1000); 80 //#endif 81 82 // Define it instead providing as option, inlining the constant significantly 83 // improves perfromance. The option is disabled for AARCH32 in globals.hpp too. 84 #define UseMembar true 85 86 #define ARCH_FLAGS(develop, product, diagnostic, experimental, notproduct) \ 87 \ 88 product(bool, NearCpool, true, \ 89 "constant pool is close to instructions") \ 90 \ 91 product(bool, UseBarriersForVolatile, false, \ 92 "Use memory barriers to implement volatile accesses") \ 93 product(bool, TraceTraps, false, "Trace all traps the signal handler")\ 94 product(bool, UseSIMDForMemoryOps, false, \ 95 "Use SIMD instructions in generated memory move code") \ 96 product(bool, UseNeon, false, \ 97 "Use Neon for CRC32 computation") \ 98 product(bool, UseCRC32, false, \ 99 "Use CRC32 instructions for CRC32 computation") 100 101 102 #endif // CPU_AARCH32_VM_GLOBALS_AARCH32_HPP