Mercurial > hg > truffle
comparison src/share/vm/runtime/globals.hpp @ 2211:0cd39a385a72
Merge.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Mon, 21 Feb 2011 19:17:33 +0100 |
parents | d25d4ca69222 e9aa2ca89ad6 |
children | 2ab52cda08e5 |
comparison
equal
deleted
inserted
replaced
2184:5d801e6b9a80 | 2211:0cd39a385a72 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 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. |
32 #ifdef TARGET_ARCH_sparc | 32 #ifdef TARGET_ARCH_sparc |
33 # include "globals_sparc.hpp" | 33 # include "globals_sparc.hpp" |
34 #endif | 34 #endif |
35 #ifdef TARGET_ARCH_zero | 35 #ifdef TARGET_ARCH_zero |
36 # include "globals_zero.hpp" | 36 # include "globals_zero.hpp" |
37 #endif | |
38 #ifdef TARGET_ARCH_arm | |
39 # include "globals_arm.hpp" | |
40 #endif | |
41 #ifdef TARGET_ARCH_ppc | |
42 # include "globals_ppc.hpp" | |
37 #endif | 43 #endif |
38 #ifdef TARGET_OS_FAMILY_linux | 44 #ifdef TARGET_OS_FAMILY_linux |
39 # include "globals_linux.hpp" | 45 # include "globals_linux.hpp" |
40 #endif | 46 #endif |
41 #ifdef TARGET_OS_FAMILY_solaris | 47 #ifdef TARGET_OS_FAMILY_solaris |
60 # include "globals_solaris_sparc.hpp" | 66 # include "globals_solaris_sparc.hpp" |
61 #endif | 67 #endif |
62 #ifdef TARGET_OS_ARCH_windows_x86 | 68 #ifdef TARGET_OS_ARCH_windows_x86 |
63 # include "globals_windows_x86.hpp" | 69 # include "globals_windows_x86.hpp" |
64 #endif | 70 #endif |
71 #ifdef TARGET_OS_ARCH_linux_arm | |
72 # include "globals_linux_arm.hpp" | |
73 #endif | |
74 #ifdef TARGET_OS_ARCH_linux_ppc | |
75 # include "globals_linux_ppc.hpp" | |
76 #endif | |
65 #ifdef COMPILER1 | 77 #ifdef COMPILER1 |
66 #ifdef TARGET_ARCH_x86 | 78 #ifdef TARGET_ARCH_x86 |
67 # include "c1_globals_x86.hpp" | 79 # include "c1_globals_x86.hpp" |
68 #endif | 80 #endif |
69 #ifdef TARGET_ARCH_sparc | 81 #ifdef TARGET_ARCH_sparc |
70 # include "c1_globals_sparc.hpp" | 82 # include "c1_globals_sparc.hpp" |
83 #endif | |
84 #ifdef TARGET_ARCH_arm | |
85 # include "c1_globals_arm.hpp" | |
86 #endif | |
87 #ifdef TARGET_ARCH_ppc | |
88 # include "c1_globals_ppc.hpp" | |
71 #endif | 89 #endif |
72 #ifdef TARGET_OS_FAMILY_linux | 90 #ifdef TARGET_OS_FAMILY_linux |
73 # include "c1_globals_linux.hpp" | 91 # include "c1_globals_linux.hpp" |
74 #endif | 92 #endif |
75 #ifdef TARGET_OS_FAMILY_solaris | 93 #ifdef TARGET_OS_FAMILY_solaris |
83 #ifdef TARGET_ARCH_x86 | 101 #ifdef TARGET_ARCH_x86 |
84 # include "c2_globals_x86.hpp" | 102 # include "c2_globals_x86.hpp" |
85 #endif | 103 #endif |
86 #ifdef TARGET_ARCH_sparc | 104 #ifdef TARGET_ARCH_sparc |
87 # include "c2_globals_sparc.hpp" | 105 # include "c2_globals_sparc.hpp" |
106 #endif | |
107 #ifdef TARGET_ARCH_arm | |
108 # include "c2_globals_arm.hpp" | |
88 #endif | 109 #endif |
89 #ifdef TARGET_OS_FAMILY_linux | 110 #ifdef TARGET_OS_FAMILY_linux |
90 # include "c2_globals_linux.hpp" | 111 # include "c2_globals_linux.hpp" |
91 #endif | 112 #endif |
92 #ifdef TARGET_OS_FAMILY_solaris | 113 #ifdef TARGET_OS_FAMILY_solaris |
408 * removal testing. It was supposed to be removed before FCS but has \ | 429 * removal testing. It was supposed to be removed before FCS but has \ |
409 * been re-added (see 6401008) */ \ | 430 * been re-added (see 6401008) */ \ |
410 product_pd(bool, UseMembar, \ | 431 product_pd(bool, UseMembar, \ |
411 "(Unstable) Issues membars on thread state transitions") \ | 432 "(Unstable) Issues membars on thread state transitions") \ |
412 \ | 433 \ |
413 /* Temporary: See 6948537 */ \ | 434 /* Temp PPC Flag to allow disabling the use of lwsync on ppc platforms \ |
435 * that don't support it. This will be replaced by processor detection \ | |
436 * logic. \ | |
437 */ \ | |
438 product(bool, UsePPCLWSYNC, true, \ | |
439 "Use lwsync instruction if true, else use slower sync") \ | |
440 \ | |
441 /* Temporary: See 6948537 */ \ | |
414 experimental(bool, UseMemSetInBOT, true, \ | 442 experimental(bool, UseMemSetInBOT, true, \ |
415 "(Unstable) uses memset in BOT updates in GC code") \ | 443 "(Unstable) uses memset in BOT updates in GC code") \ |
416 \ | 444 \ |
417 diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug, \ | 445 diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug, \ |
418 "Enable normal processing of flags relating to field diagnostics")\ | 446 "Enable normal processing of flags relating to field diagnostics")\ |
759 develop(bool, WizardMode, false, \ | 787 develop(bool, WizardMode, false, \ |
760 "Prints much more debugging information") \ | 788 "Prints much more debugging information") \ |
761 \ | 789 \ |
762 product(bool, ShowMessageBoxOnError, false, \ | 790 product(bool, ShowMessageBoxOnError, false, \ |
763 "Keep process alive on VM fatal error") \ | 791 "Keep process alive on VM fatal error") \ |
792 \ | |
793 product(bool, CreateMinidumpOnCrash, false, \ | |
794 "Create minidump on VM fatal error") \ | |
764 \ | 795 \ |
765 product_pd(bool, UseOSErrorReporting, \ | 796 product_pd(bool, UseOSErrorReporting, \ |
766 "Let VM fatal error propagate to the OS (ie. WER on Windows)") \ | 797 "Let VM fatal error propagate to the OS (ie. WER on Windows)") \ |
767 \ | 798 \ |
768 product(bool, SuppressFatalErrorMessage, false, \ | 799 product(bool, SuppressFatalErrorMessage, false, \ |
1927 "Print various TLAB related information") \ | 1958 "Print various TLAB related information") \ |
1928 \ | 1959 \ |
1929 product(bool, PrintRevisitStats, false, \ | 1960 product(bool, PrintRevisitStats, false, \ |
1930 "Print revisit (klass and MDO) stack related information") \ | 1961 "Print revisit (klass and MDO) stack related information") \ |
1931 \ | 1962 \ |
1963 EMBEDDED_ONLY(product(bool, LowMemoryProtection, true, \ | |
1964 "Enable LowMemoryProtection")) \ | |
1965 \ | |
1932 product_pd(bool, NeverActAsServerClassMachine, \ | 1966 product_pd(bool, NeverActAsServerClassMachine, \ |
1933 "Never act like a server-class machine") \ | 1967 "Never act like a server-class machine") \ |
1934 \ | 1968 \ |
1935 product(bool, AlwaysActAsServerClassMachine, false, \ | 1969 product(bool, AlwaysActAsServerClassMachine, false, \ |
1936 "Always act like a server-class machine") \ | 1970 "Always act like a server-class machine") \ |
2630 product(bool, AggressiveOpts, false, \ | 2664 product(bool, AggressiveOpts, false, \ |
2631 "Enable aggressive optimizations - see arguments.cpp") \ | 2665 "Enable aggressive optimizations - see arguments.cpp") \ |
2632 \ | 2666 \ |
2633 product(bool, UseStringCache, false, \ | 2667 product(bool, UseStringCache, false, \ |
2634 "Enable String cache capabilities on String.java") \ | 2668 "Enable String cache capabilities on String.java") \ |
2669 \ | |
2670 /* byte strings */ \ | |
2671 product(bool, UseCompressedStrings, false, \ | |
2672 "Enable byte-valued strings") \ | |
2673 \ | |
2674 product(bool, SpecialStringCompress, true, \ | |
2675 "special version of string compress") \ | |
2676 \ | |
2677 product(bool, SpecialStringInflate, true, \ | |
2678 "special version of string inflate") \ | |
2679 \ | |
2680 product(bool, SpecialStringCompareToCC, true, \ | |
2681 "special version of string compareToCC") \ | |
2682 \ | |
2683 product(bool, SpecialStringIndexOfCC, true, \ | |
2684 "special version of string indexOfCC") \ | |
2685 \ | |
2686 product(bool, SpecialStringEqualsCC, true, \ | |
2687 "special version of string equalsCC") \ | |
2635 \ | 2688 \ |
2636 /* statistics */ \ | 2689 /* statistics */ \ |
2637 develop(bool, CountCompiledCalls, false, \ | 2690 develop(bool, CountCompiledCalls, false, \ |
2638 "counts method invocations") \ | 2691 "counts method invocations") \ |
2639 \ | 2692 \ |
2852 \ | 2905 \ |
2853 product(intx, MaxJavaStackTraceDepth, 1024, \ | 2906 product(intx, MaxJavaStackTraceDepth, 1024, \ |
2854 "Max. no. of lines in the stack trace for Java exceptions " \ | 2907 "Max. no. of lines in the stack trace for Java exceptions " \ |
2855 "(0 means all)") \ | 2908 "(0 means all)") \ |
2856 \ | 2909 \ |
2857 develop(intx, GuaranteedSafepointInterval, 1000, \ | 2910 NOT_EMBEDDED(develop(intx, GuaranteedSafepointInterval, 1000, \ |
2858 "Guarantee a safepoint (at least) every so many milliseconds " \ | 2911 "Guarantee a safepoint (at least) every so many milliseconds " \ |
2859 "(0 means none)") \ | 2912 "(0 means none)")) \ |
2913 \ | |
2914 EMBEDDED_ONLY(product(intx, GuaranteedSafepointInterval, 0, \ | |
2915 "Guarantee a safepoint (at least) every so many milliseconds " \ | |
2916 "(0 means none)")) \ | |
2860 \ | 2917 \ |
2861 product(intx, SafepointTimeoutDelay, 10000, \ | 2918 product(intx, SafepointTimeoutDelay, 10000, \ |
2862 "Delay in milliseconds for option SafepointTimeout") \ | 2919 "Delay in milliseconds for option SafepointTimeout") \ |
2863 \ | 2920 \ |
2864 product(intx, NmethodSweepFraction, 4, \ | 2921 product(intx, NmethodSweepFraction, 4, \ |
3544 diagnostic(bool, UseNewCode3, false, \ | 3601 diagnostic(bool, UseNewCode3, false, \ |
3545 "Testing Only: Use the new version while testing") \ | 3602 "Testing Only: Use the new version while testing") \ |
3546 \ | 3603 \ |
3547 /* flags for performance data collection */ \ | 3604 /* flags for performance data collection */ \ |
3548 \ | 3605 \ |
3549 product(bool, UsePerfData, true, \ | 3606 NOT_EMBEDDED(product(bool, UsePerfData, true, \ |
3550 "Flag to disable jvmstat instrumentation for performance testing" \ | 3607 "Flag to disable jvmstat instrumentation for performance testing" \ |
3551 "and problem isolation purposes.") \ | 3608 "and problem isolation purposes.")) \ |
3609 \ | |
3610 EMBEDDED_ONLY(product(bool, UsePerfData, false, \ | |
3611 "Flag to disable jvmstat instrumentation for performance testing" \ | |
3612 "and problem isolation purposes.")) \ | |
3552 \ | 3613 \ |
3553 product(bool, PerfDataSaveToFile, false, \ | 3614 product(bool, PerfDataSaveToFile, false, \ |
3554 "Save PerfData memory to hsperfdata_<pid> file on exit") \ | 3615 "Save PerfData memory to hsperfdata_<pid> file on exit") \ |
3555 \ | 3616 \ |
3556 product(ccstr, PerfDataSaveFile, NULL, \ | 3617 product(ccstr, PerfDataSaveFile, NULL, \ |
3597 product(bool, StartAttachListener, false, \ | 3658 product(bool, StartAttachListener, false, \ |
3598 "Always start Attach Listener at VM startup") \ | 3659 "Always start Attach Listener at VM startup") \ |
3599 \ | 3660 \ |
3600 manageable(bool, PrintConcurrentLocks, false, \ | 3661 manageable(bool, PrintConcurrentLocks, false, \ |
3601 "Print java.util.concurrent locks in thread dump") \ | 3662 "Print java.util.concurrent locks in thread dump") \ |
3663 \ | |
3664 product(bool, TransmitErrorReport, false, \ | |
3665 "Enable error report transmission on erroneous termination") \ | |
3666 \ | |
3667 product(ccstr, ErrorReportServer, NULL, \ | |
3668 "Override built-in error report server address") \ | |
3602 \ | 3669 \ |
3603 /* Shared spaces */ \ | 3670 /* Shared spaces */ \ |
3604 \ | 3671 \ |
3605 product(bool, UseSharedSpaces, true, \ | 3672 product(bool, UseSharedSpaces, true, \ |
3606 "Use shared spaces in the permanent generation") \ | 3673 "Use shared spaces in the permanent generation") \ |