25
26 #ifndef CPU_PPC_VM_GLOBALS_PPC_HPP
27 #define CPU_PPC_VM_GLOBALS_PPC_HPP
28
29 #include "utilities/globalDefinitions.hpp"
30 #include "utilities/macros.hpp"
31
32 // Sets the default values for platform dependent flags used by the runtime system.
33 // (see globals.hpp)
34
35 define_pd_global(bool, ShareVtableStubs, false); // Improves performance markedly for mtrt and compress.
36 define_pd_global(bool, NeedsDeoptSuspend, false); // Only register window machines need this.
37
38
39 define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks.
40 define_pd_global(bool, TrapBasedNullChecks, true);
41 define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs passed to check cast.
42
43 #define DEFAULT_STACK_YELLOW_PAGES (2)
44 #define DEFAULT_STACK_RED_PAGES (1)
45 #define DEFAULT_STACK_SHADOW_PAGES (20 DEBUG_ONLY(+2))
46 #define DEFAULT_STACK_RESERVED_PAGES (1)
47
48 #define MIN_STACK_YELLOW_PAGES DEFAULT_STACK_YELLOW_PAGES
49 #define MIN_STACK_RED_PAGES DEFAULT_STACK_RED_PAGES
50 #define MIN_STACK_SHADOW_PAGES (3 DEBUG_ONLY(+1))
51 #define MIN_STACK_RESERVED_PAGES (0)
52
53 define_pd_global(intx, StackYellowPages, DEFAULT_STACK_YELLOW_PAGES);
54 define_pd_global(intx, StackRedPages, DEFAULT_STACK_RED_PAGES);
55 define_pd_global(intx, StackShadowPages, DEFAULT_STACK_SHADOW_PAGES);
56 define_pd_global(intx, StackReservedPages, DEFAULT_STACK_RESERVED_PAGES);
57
58 // Use large code-entry alignment.
59 define_pd_global(uintx, CodeCacheSegmentSize, 128);
60 define_pd_global(intx, CodeEntryAlignment, 128);
61 define_pd_global(intx, OptoLoopAlignment, 16);
62 define_pd_global(intx, InlineFrequencyCount, 100);
63 define_pd_global(intx, InlineSmallCode, 1500);
64
|
25
26 #ifndef CPU_PPC_VM_GLOBALS_PPC_HPP
27 #define CPU_PPC_VM_GLOBALS_PPC_HPP
28
29 #include "utilities/globalDefinitions.hpp"
30 #include "utilities/macros.hpp"
31
32 // Sets the default values for platform dependent flags used by the runtime system.
33 // (see globals.hpp)
34
35 define_pd_global(bool, ShareVtableStubs, false); // Improves performance markedly for mtrt and compress.
36 define_pd_global(bool, NeedsDeoptSuspend, false); // Only register window machines need this.
37
38
39 define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks.
40 define_pd_global(bool, TrapBasedNullChecks, true);
41 define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs passed to check cast.
42
43 #define DEFAULT_STACK_YELLOW_PAGES (2)
44 #define DEFAULT_STACK_RED_PAGES (1)
45 // Java_java_net_SocketOutputStream_socketWrite0() uses a 64k buffer on the
46 // stack if compiled for unix and LP64. To pass stack overflow tests we need
47 // 20 shadow pages.
48 #define DEFAULT_STACK_SHADOW_PAGES (20 DEBUG_ONLY(+2))
49 #define DEFAULT_STACK_RESERVED_PAGES (1)
50
51 #define MIN_STACK_YELLOW_PAGES DEFAULT_STACK_YELLOW_PAGES
52 #define MIN_STACK_RED_PAGES DEFAULT_STACK_RED_PAGES
53 #define MIN_STACK_SHADOW_PAGES (3 DEBUG_ONLY(+1))
54 #define MIN_STACK_RESERVED_PAGES (0)
55
56 define_pd_global(intx, StackYellowPages, DEFAULT_STACK_YELLOW_PAGES);
57 define_pd_global(intx, StackRedPages, DEFAULT_STACK_RED_PAGES);
58 define_pd_global(intx, StackShadowPages, DEFAULT_STACK_SHADOW_PAGES);
59 define_pd_global(intx, StackReservedPages, DEFAULT_STACK_RESERVED_PAGES);
60
61 // Use large code-entry alignment.
62 define_pd_global(uintx, CodeCacheSegmentSize, 128);
63 define_pd_global(intx, CodeEntryAlignment, 128);
64 define_pd_global(intx, OptoLoopAlignment, 16);
65 define_pd_global(intx, InlineFrequencyCount, 100);
66 define_pd_global(intx, InlineSmallCode, 1500);
67
|