479 // it can be done in the same way as product_rw. |
479 // it can be done in the same way as product_rw. |
480 |
480 |
481 #define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product) \ |
481 #define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product) \ |
482 \ |
482 \ |
483 lp64_product(bool, UseCompressedOops, false, \ |
483 lp64_product(bool, UseCompressedOops, false, \ |
484 "Use 32-bit object references in 64-bit VM " \ |
484 "Use 32-bit object references in 64-bit VM. " \ |
485 "lp64_product means flag is always constant in 32 bit VM") \ |
485 "lp64_product means flag is always constant in 32 bit VM") \ |
486 \ |
486 \ |
487 lp64_product(bool, UseCompressedClassPointers, false, \ |
487 lp64_product(bool, UseCompressedClassPointers, false, \ |
488 "Use 32-bit class pointers in 64-bit VM " \ |
488 "Use 32-bit class pointers in 64-bit VM. " \ |
489 "lp64_product means flag is always constant in 32 bit VM") \ |
489 "lp64_product means flag is always constant in 32 bit VM") \ |
490 \ |
490 \ |
491 notproduct(bool, CheckCompressedOops, true, \ |
491 notproduct(bool, CheckCompressedOops, true, \ |
492 "generate checks in encoding/decoding code in debug VM") \ |
492 "Generate checks in encoding/decoding code in debug VM") \ |
493 \ |
493 \ |
494 product_pd(uintx, HeapBaseMinAddress, \ |
494 product_pd(uintx, HeapBaseMinAddress, \ |
495 "OS specific low limit for heap base address") \ |
495 "OS specific low limit for heap base address") \ |
496 \ |
496 \ |
497 diagnostic(bool, PrintCompressedOopsMode, false, \ |
497 diagnostic(bool, PrintCompressedOopsMode, false, \ |
498 "Print compressed oops base address and encoding mode") \ |
498 "Print compressed oops base address and encoding mode") \ |
499 \ |
499 \ |
500 lp64_product(intx, ObjectAlignmentInBytes, 8, \ |
500 lp64_product(intx, ObjectAlignmentInBytes, 8, \ |
501 "Default object alignment in bytes, 8 is minimum") \ |
501 "Default object alignment in bytes, 8 is minimum") \ |
502 \ |
502 \ |
503 product(bool, AssumeMP, false, \ |
503 product(bool, AssumeMP, false, \ |
515 */ \ |
515 */ \ |
516 product(bool, UsePPCLWSYNC, true, \ |
516 product(bool, UsePPCLWSYNC, true, \ |
517 "Use lwsync instruction if true, else use slower sync") \ |
517 "Use lwsync instruction if true, else use slower sync") \ |
518 \ |
518 \ |
519 develop(bool, CleanChunkPoolAsync, falseInEmbedded, \ |
519 develop(bool, CleanChunkPoolAsync, falseInEmbedded, \ |
520 "Whether to clean the chunk pool asynchronously") \ |
520 "Clean the chunk pool asynchronously") \ |
521 \ |
521 \ |
522 /* Temporary: See 6948537 */ \ |
522 /* Temporary: See 6948537 */ \ |
523 experimental(bool, UseMemSetInBOT, true, \ |
523 experimental(bool, UseMemSetInBOT, true, \ |
524 "(Unstable) uses memset in BOT updates in GC code") \ |
524 "(Unstable) uses memset in BOT updates in GC code") \ |
525 \ |
525 \ |
526 diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug, \ |
526 diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug, \ |
527 "Enable normal processing of flags relating to field diagnostics")\ |
527 "Enable normal processing of flags relating to field diagnostics")\ |
528 \ |
528 \ |
529 experimental(bool, UnlockExperimentalVMOptions, false, \ |
529 experimental(bool, UnlockExperimentalVMOptions, false, \ |
530 "Enable normal processing of flags relating to experimental features")\ |
530 "Enable normal processing of flags relating to experimental " \ |
|
531 "features") \ |
531 \ |
532 \ |
532 product(bool, JavaMonitorsInStackTrace, true, \ |
533 product(bool, JavaMonitorsInStackTrace, true, \ |
533 "Print info. about Java monitor locks when the stacks are dumped")\ |
534 "Print information about Java monitor locks when the stacks are" \ |
|
535 "dumped") \ |
534 \ |
536 \ |
535 product_pd(bool, UseLargePages, \ |
537 product_pd(bool, UseLargePages, \ |
536 "Use large page memory") \ |
538 "Use large page memory") \ |
537 \ |
539 \ |
538 product_pd(bool, UseLargePagesIndividualAllocation, \ |
540 product_pd(bool, UseLargePagesIndividualAllocation, \ |
539 "Allocate large pages individually for better affinity") \ |
541 "Allocate large pages individually for better affinity") \ |
540 \ |
542 \ |
541 develop(bool, LargePagesIndividualAllocationInjectError, false, \ |
543 develop(bool, LargePagesIndividualAllocationInjectError, false, \ |
542 "Fail large pages individual allocation") \ |
544 "Fail large pages individual allocation") \ |
543 \ |
545 \ |
|
546 product(bool, UseLargePagesInMetaspace, false, \ |
|
547 "Use large page memory in metaspace. " \ |
|
548 "Only used if UseLargePages is enabled.") \ |
|
549 \ |
544 develop(bool, TracePageSizes, false, \ |
550 develop(bool, TracePageSizes, false, \ |
545 "Trace page size selection and usage.") \ |
551 "Trace page size selection and usage") \ |
546 \ |
552 \ |
547 product(bool, UseNUMA, false, \ |
553 product(bool, UseNUMA, false, \ |
548 "Use NUMA if available") \ |
554 "Use NUMA if available") \ |
549 \ |
555 \ |
550 product(bool, UseNUMAInterleaving, false, \ |
556 product(bool, UseNUMAInterleaving, false, \ |
603 develop(bool, TraceRelocator, false, \ |
609 develop(bool, TraceRelocator, false, \ |
604 "Trace the bytecode relocator") \ |
610 "Trace the bytecode relocator") \ |
605 \ |
611 \ |
606 develop(bool, TraceLongCompiles, false, \ |
612 develop(bool, TraceLongCompiles, false, \ |
607 "Print out every time compilation is longer than " \ |
613 "Print out every time compilation is longer than " \ |
608 "a given threashold") \ |
614 "a given threshold") \ |
609 \ |
615 \ |
610 develop(bool, SafepointALot, false, \ |
616 develop(bool, SafepointALot, false, \ |
611 "Generates a lot of safepoints. Works with " \ |
617 "Generate a lot of safepoints. This works with " \ |
612 "GuaranteedSafepointInterval") \ |
618 "GuaranteedSafepointInterval") \ |
613 \ |
619 \ |
614 product_pd(bool, BackgroundCompilation, \ |
620 product_pd(bool, BackgroundCompilation, \ |
615 "A thread requesting compilation is not blocked during " \ |
621 "A thread requesting compilation is not blocked during " \ |
616 "compilation") \ |
622 "compilation") \ |
617 \ |
623 \ |
618 product(bool, PrintVMQWaitTime, false, \ |
624 product(bool, PrintVMQWaitTime, false, \ |
619 "Prints out the waiting time in VM operation queue") \ |
625 "Print out the waiting time in VM operation queue") \ |
620 \ |
626 \ |
621 develop(bool, NoYieldsInMicrolock, false, \ |
627 develop(bool, NoYieldsInMicrolock, false, \ |
622 "Disable yields in microlock") \ |
628 "Disable yields in microlock") \ |
623 \ |
629 \ |
624 develop(bool, TraceOopMapGeneration, false, \ |
630 develop(bool, TraceOopMapGeneration, false, \ |
625 "Shows oopmap generation") \ |
631 "Show OopMapGeneration") \ |
626 \ |
632 \ |
627 product(bool, MethodFlushing, true, \ |
633 product(bool, MethodFlushing, true, \ |
628 "Reclamation of zombie and not-entrant methods") \ |
634 "Reclamation of zombie and not-entrant methods") \ |
629 \ |
635 \ |
630 develop(bool, VerifyStack, false, \ |
636 develop(bool, VerifyStack, false, \ |
631 "Verify stack of each thread when it is entering a runtime call") \ |
637 "Verify stack of each thread when it is entering a runtime call") \ |
632 \ |
638 \ |
633 diagnostic(bool, ForceUnreachable, false, \ |
639 diagnostic(bool, ForceUnreachable, false, \ |
634 "Make all non code cache addresses to be unreachable with forcing use of 64bit literal fixups") \ |
640 "Make all non code cache addresses to be unreachable by " \ |
|
641 "forcing use of 64bit literal fixups") \ |
635 \ |
642 \ |
636 notproduct(bool, StressDerivedPointers, false, \ |
643 notproduct(bool, StressDerivedPointers, false, \ |
637 "Force scavenge when a derived pointers is detected on stack " \ |
644 "Force scavenge when a derived pointer is detected on stack " \ |
638 "after rtm call") \ |
645 "after rtm call") \ |
639 \ |
646 \ |
640 develop(bool, TraceDerivedPointers, false, \ |
647 develop(bool, TraceDerivedPointers, false, \ |
641 "Trace traversal of derived pointers on stack") \ |
648 "Trace traversal of derived pointers on stack") \ |
642 \ |
649 \ |
651 \ |
658 \ |
652 product(bool, UseInlineCaches, true, \ |
659 product(bool, UseInlineCaches, true, \ |
653 "Use Inline Caches for virtual calls ") \ |
660 "Use Inline Caches for virtual calls ") \ |
654 \ |
661 \ |
655 develop(bool, InlineArrayCopy, true, \ |
662 develop(bool, InlineArrayCopy, true, \ |
656 "inline arraycopy native that is known to be part of " \ |
663 "Inline arraycopy native that is known to be part of " \ |
657 "base library DLL") \ |
664 "base library DLL") \ |
658 \ |
665 \ |
659 develop(bool, InlineObjectHash, true, \ |
666 develop(bool, InlineObjectHash, true, \ |
660 "inline Object::hashCode() native that is known to be part " \ |
667 "Inline Object::hashCode() native that is known to be part " \ |
661 "of base library DLL") \ |
668 "of base library DLL") \ |
662 \ |
669 \ |
663 develop(bool, InlineNatives, true, \ |
670 develop(bool, InlineNatives, true, \ |
664 "inline natives that are known to be part of base library DLL") \ |
671 "Inline natives that are known to be part of base library DLL") \ |
665 \ |
672 \ |
666 develop(bool, InlineMathNatives, true, \ |
673 develop(bool, InlineMathNatives, true, \ |
667 "inline SinD, CosD, etc.") \ |
674 "Inline SinD, CosD, etc.") \ |
668 \ |
675 \ |
669 develop(bool, InlineClassNatives, true, \ |
676 develop(bool, InlineClassNatives, true, \ |
670 "inline Class.isInstance, etc") \ |
677 "Inline Class.isInstance, etc") \ |
671 \ |
678 \ |
672 develop(bool, InlineThreadNatives, true, \ |
679 develop(bool, InlineThreadNatives, true, \ |
673 "inline Thread.currentThread, etc") \ |
680 "Inline Thread.currentThread, etc") \ |
674 \ |
681 \ |
675 develop(bool, InlineUnsafeOps, true, \ |
682 develop(bool, InlineUnsafeOps, true, \ |
676 "inline memory ops (native methods) from sun.misc.Unsafe") \ |
683 "Inline memory ops (native methods) from sun.misc.Unsafe") \ |
677 \ |
684 \ |
678 product(bool, CriticalJNINatives, true, \ |
685 product(bool, CriticalJNINatives, true, \ |
679 "check for critical JNI entry points") \ |
686 "Check for critical JNI entry points") \ |
680 \ |
687 \ |
681 notproduct(bool, StressCriticalJNINatives, false, \ |
688 notproduct(bool, StressCriticalJNINatives, false, \ |
682 "Exercise register saving code in critical natives") \ |
689 "Exercise register saving code in critical natives") \ |
683 \ |
690 \ |
684 product(bool, UseSSE42Intrinsics, false, \ |
691 product(bool, UseSSE42Intrinsics, false, \ |
685 "SSE4.2 versions of intrinsics") \ |
692 "SSE4.2 versions of intrinsics") \ |
686 \ |
693 \ |
687 product(bool, UseAESIntrinsics, false, \ |
694 product(bool, UseAESIntrinsics, false, \ |
688 "use intrinsics for AES versions of crypto") \ |
695 "Use intrinsics for AES versions of crypto") \ |
689 \ |
696 \ |
690 product(bool, UseCRC32Intrinsics, false, \ |
697 product(bool, UseCRC32Intrinsics, false, \ |
691 "use intrinsics for java.util.zip.CRC32") \ |
698 "use intrinsics for java.util.zip.CRC32") \ |
692 \ |
699 \ |
693 develop(bool, TraceCallFixup, false, \ |
700 develop(bool, TraceCallFixup, false, \ |
694 "traces all call fixups") \ |
701 "Trace all call fixups") \ |
695 \ |
702 \ |
696 develop(bool, DeoptimizeALot, false, \ |
703 develop(bool, DeoptimizeALot, false, \ |
697 "deoptimize at every exit from the runtime system") \ |
704 "Deoptimize at every exit from the runtime system") \ |
698 \ |
705 \ |
699 notproduct(ccstrlist, DeoptimizeOnlyAt, "", \ |
706 notproduct(ccstrlist, DeoptimizeOnlyAt, "", \ |
700 "a comma separated list of bcis to deoptimize at") \ |
707 "A comma separated list of bcis to deoptimize at") \ |
701 \ |
708 \ |
702 product(bool, DeoptimizeRandom, false, \ |
709 product(bool, DeoptimizeRandom, false, \ |
703 "deoptimize random frames on random exit from the runtime system")\ |
710 "Deoptimize random frames on random exit from the runtime system")\ |
704 \ |
711 \ |
705 notproduct(bool, ZombieALot, false, \ |
712 notproduct(bool, ZombieALot, false, \ |
706 "creates zombies (non-entrant) at exit from the runt. system") \ |
713 "Create zombies (non-entrant) at exit from the runtime system") \ |
707 \ |
714 \ |
708 product(bool, UnlinkSymbolsALot, false, \ |
715 product(bool, UnlinkSymbolsALot, false, \ |
709 "unlink unreferenced symbols from the symbol table at safepoints")\ |
716 "Unlink unreferenced symbols from the symbol table at safepoints")\ |
710 \ |
717 \ |
711 notproduct(bool, WalkStackALot, false, \ |
718 notproduct(bool, WalkStackALot, false, \ |
712 "trace stack (no print) at every exit from the runtime system") \ |
719 "Trace stack (no print) at every exit from the runtime system") \ |
713 \ |
720 \ |
714 product(bool, Debugging, false, \ |
721 product(bool, Debugging, false, \ |
715 "set when executing debug methods in debug.ccp " \ |
722 "Set when executing debug methods in debug.cpp " \ |
716 "(to prevent triggering assertions)") \ |
723 "(to prevent triggering assertions)") \ |
717 \ |
724 \ |
718 notproduct(bool, StrictSafepointChecks, trueInDebug, \ |
725 notproduct(bool, StrictSafepointChecks, trueInDebug, \ |
719 "Enable strict checks that safepoints cannot happen for threads " \ |
726 "Enable strict checks that safepoints cannot happen for threads " \ |
720 "that used No_Safepoint_Verifier") \ |
727 "that use No_Safepoint_Verifier") \ |
721 \ |
728 \ |
722 notproduct(bool, VerifyLastFrame, false, \ |
729 notproduct(bool, VerifyLastFrame, false, \ |
723 "Verify oops on last frame on entry to VM") \ |
730 "Verify oops on last frame on entry to VM") \ |
724 \ |
731 \ |
725 develop(bool, TraceHandleAllocation, false, \ |
732 develop(bool, TraceHandleAllocation, false, \ |
726 "Prints out warnings when suspicious many handles are allocated") \ |
733 "Print out warnings when suspiciously many handles are allocated")\ |
727 \ |
734 \ |
728 product(bool, UseCompilerSafepoints, true, \ |
735 product(bool, UseCompilerSafepoints, true, \ |
729 "Stop at safepoints in compiled code") \ |
736 "Stop at safepoints in compiled code") \ |
730 \ |
737 \ |
731 product(bool, FailOverToOldVerifier, true, \ |
738 product(bool, FailOverToOldVerifier, true, \ |
732 "fail over to old verifier when split verifier fails") \ |
739 "Fail over to old verifier when split verifier fails") \ |
733 \ |
740 \ |
734 develop(bool, ShowSafepointMsgs, false, \ |
741 develop(bool, ShowSafepointMsgs, false, \ |
735 "Show msg. about safepoint synch.") \ |
742 "Show message about safepoint synchronization") \ |
736 \ |
743 \ |
737 product(bool, SafepointTimeout, false, \ |
744 product(bool, SafepointTimeout, false, \ |
738 "Time out and warn or fail after SafepointTimeoutDelay " \ |
745 "Time out and warn or fail after SafepointTimeoutDelay " \ |
739 "milliseconds if failed to reach safepoint") \ |
746 "milliseconds if failed to reach safepoint") \ |
740 \ |
747 \ |
754 \ |
761 \ |
755 product(bool, TraceSuspendWaitFailures, false, \ |
762 product(bool, TraceSuspendWaitFailures, false, \ |
756 "Trace external suspend wait failures") \ |
763 "Trace external suspend wait failures") \ |
757 \ |
764 \ |
758 product(bool, MaxFDLimit, true, \ |
765 product(bool, MaxFDLimit, true, \ |
759 "Bump the number of file descriptors to max in solaris.") \ |
766 "Bump the number of file descriptors to maximum in Solaris") \ |
760 \ |
767 \ |
761 diagnostic(bool, LogEvents, true, \ |
768 diagnostic(bool, LogEvents, true, \ |
762 "Enable the various ring buffer event logs") \ |
769 "Enable the various ring buffer event logs") \ |
763 \ |
770 \ |
764 diagnostic(uintx, LogEventsBufferEntries, 10, \ |
771 diagnostic(uintx, LogEventsBufferEntries, 10, \ |
765 "Enable the various ring buffer event logs") \ |
772 "Number of ring buffer event logs") \ |
766 \ |
773 \ |
767 product(bool, BytecodeVerificationRemote, true, \ |
774 product(bool, BytecodeVerificationRemote, true, \ |
768 "Enables the Java bytecode verifier for remote classes") \ |
775 "Enable the Java bytecode verifier for remote classes") \ |
769 \ |
776 \ |
770 product(bool, BytecodeVerificationLocal, false, \ |
777 product(bool, BytecodeVerificationLocal, false, \ |
771 "Enables the Java bytecode verifier for local classes") \ |
778 "Enable the Java bytecode verifier for local classes") \ |
772 \ |
779 \ |
773 develop(bool, ForceFloatExceptions, trueInDebug, \ |
780 develop(bool, ForceFloatExceptions, trueInDebug, \ |
774 "Force exceptions on FP stack under/overflow") \ |
781 "Force exceptions on FP stack under/overflow") \ |
775 \ |
782 \ |
776 develop(bool, VerifyStackAtCalls, false, \ |
783 develop(bool, VerifyStackAtCalls, false, \ |
833 \ |
840 \ |
834 develop(bool, ZapFillerObjects, trueInDebug, \ |
841 develop(bool, ZapFillerObjects, trueInDebug, \ |
835 "Zap filler objects with 0xDEAFBABE") \ |
842 "Zap filler objects with 0xDEAFBABE") \ |
836 \ |
843 \ |
837 develop(bool, PrintVMMessages, true, \ |
844 develop(bool, PrintVMMessages, true, \ |
838 "Print vm messages on console") \ |
845 "Print VM messages on console") \ |
839 \ |
846 \ |
840 product(bool, PrintGCApplicationConcurrentTime, false, \ |
847 product(bool, PrintGCApplicationConcurrentTime, false, \ |
841 "Print the time the application has been running") \ |
848 "Print the time the application has been running") \ |
842 \ |
849 \ |
843 product(bool, PrintGCApplicationStoppedTime, false, \ |
850 product(bool, PrintGCApplicationStoppedTime, false, \ |
844 "Print the time the application has been stopped") \ |
851 "Print the time the application has been stopped") \ |
845 \ |
852 \ |
846 diagnostic(bool, VerboseVerification, false, \ |
853 diagnostic(bool, VerboseVerification, false, \ |
847 "Display detailed verification details") \ |
854 "Display detailed verification details") \ |
848 \ |
855 \ |
849 notproduct(uintx, ErrorHandlerTest, 0, \ |
856 notproduct(uintx, ErrorHandlerTest, 0, \ |
850 "If > 0, provokes an error after VM initialization; the value" \ |
857 "If > 0, provokes an error after VM initialization; the value " \ |
851 "determines which error to provoke. See test_error_handler()" \ |
858 "determines which error to provoke. See test_error_handler() " \ |
852 "in debug.cpp.") \ |
859 "in debug.cpp.") \ |
853 \ |
860 \ |
854 develop(bool, Verbose, false, \ |
861 develop(bool, Verbose, false, \ |
855 "Prints additional debugging information from other modes") \ |
862 "Print additional debugging information from other modes") \ |
856 \ |
863 \ |
857 develop(bool, PrintMiscellaneous, false, \ |
864 develop(bool, PrintMiscellaneous, false, \ |
858 "Prints uncategorized debugging information (requires +Verbose)") \ |
865 "Print uncategorized debugging information (requires +Verbose)") \ |
859 \ |
866 \ |
860 develop(bool, WizardMode, false, \ |
867 develop(bool, WizardMode, false, \ |
861 "Prints much more debugging information") \ |
868 "Print much more debugging information") \ |
862 \ |
869 \ |
863 product(bool, ShowMessageBoxOnError, false, \ |
870 product(bool, ShowMessageBoxOnError, false, \ |
864 "Keep process alive on VM fatal error") \ |
871 "Keep process alive on VM fatal error") \ |
865 \ |
872 \ |
866 product(bool, CreateMinidumpOnCrash, false, \ |
873 product(bool, CreateMinidumpOnCrash, false, \ |
868 \ |
875 \ |
869 product_pd(bool, UseOSErrorReporting, \ |
876 product_pd(bool, UseOSErrorReporting, \ |
870 "Let VM fatal error propagate to the OS (ie. WER on Windows)") \ |
877 "Let VM fatal error propagate to the OS (ie. WER on Windows)") \ |
871 \ |
878 \ |
872 product(bool, SuppressFatalErrorMessage, false, \ |
879 product(bool, SuppressFatalErrorMessage, false, \ |
873 "Do NO Fatal Error report [Avoid deadlock]") \ |
880 "Report NO fatal error message (avoid deadlock)") \ |
874 \ |
881 \ |
875 product(ccstrlist, OnError, "", \ |
882 product(ccstrlist, OnError, "", \ |
876 "Run user-defined commands on fatal error; see VMError.cpp " \ |
883 "Run user-defined commands on fatal error; see VMError.cpp " \ |
877 "for examples") \ |
884 "for examples") \ |
878 \ |
885 \ |
879 product(ccstrlist, OnOutOfMemoryError, "", \ |
886 product(ccstrlist, OnOutOfMemoryError, "", \ |
880 "Run user-defined commands on first java.lang.OutOfMemoryError") \ |
887 "Run user-defined commands on first java.lang.OutOfMemoryError") \ |
881 \ |
888 \ |
882 manageable(bool, HeapDumpBeforeFullGC, false, \ |
889 manageable(bool, HeapDumpBeforeFullGC, false, \ |
883 "Dump heap to file before any major stop-world GC") \ |
890 "Dump heap to file before any major stop-the-world GC") \ |
884 \ |
891 \ |
885 manageable(bool, HeapDumpAfterFullGC, false, \ |
892 manageable(bool, HeapDumpAfterFullGC, false, \ |
886 "Dump heap to file after any major stop-world GC") \ |
893 "Dump heap to file after any major stop-the-world GC") \ |
887 \ |
894 \ |
888 manageable(bool, HeapDumpOnOutOfMemoryError, false, \ |
895 manageable(bool, HeapDumpOnOutOfMemoryError, false, \ |
889 "Dump heap to file when java.lang.OutOfMemoryError is thrown") \ |
896 "Dump heap to file when java.lang.OutOfMemoryError is thrown") \ |
890 \ |
897 \ |
891 manageable(ccstr, HeapDumpPath, NULL, \ |
898 manageable(ccstr, HeapDumpPath, NULL, \ |
892 "When HeapDumpOnOutOfMemoryError is on, the path (filename or" \ |
899 "When HeapDumpOnOutOfMemoryError is on, the path (filename or " \ |
893 "directory) of the dump file (defaults to java_pid<pid>.hprof" \ |
900 "directory) of the dump file (defaults to java_pid<pid>.hprof " \ |
894 "in the working directory)") \ |
901 "in the working directory)") \ |
895 \ |
902 \ |
896 develop(uintx, SegmentedHeapDumpThreshold, 2*G, \ |
903 develop(uintx, SegmentedHeapDumpThreshold, 2*G, \ |
897 "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) " \ |
904 "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) " \ |
898 "when the heap usage is larger than this") \ |
905 "when the heap usage is larger than this") \ |
902 \ |
909 \ |
903 develop(bool, BreakAtWarning, false, \ |
910 develop(bool, BreakAtWarning, false, \ |
904 "Execute breakpoint upon encountering VM warning") \ |
911 "Execute breakpoint upon encountering VM warning") \ |
905 \ |
912 \ |
906 develop(bool, TraceVMOperation, false, \ |
913 develop(bool, TraceVMOperation, false, \ |
907 "Trace vm operations") \ |
914 "Trace VM operations") \ |
908 \ |
915 \ |
909 develop(bool, UseFakeTimers, false, \ |
916 develop(bool, UseFakeTimers, false, \ |
910 "Tells whether the VM should use system time or a fake timer") \ |
917 "Tell whether the VM should use system time or a fake timer") \ |
911 \ |
918 \ |
912 product(ccstr, NativeMemoryTracking, "off", \ |
919 product(ccstr, NativeMemoryTracking, "off", \ |
913 "Native memory tracking options") \ |
920 "Native memory tracking options") \ |
914 \ |
921 \ |
915 diagnostic(bool, PrintNMTStatistics, false, \ |
922 diagnostic(bool, PrintNMTStatistics, false, \ |
916 "Print native memory tracking summary data if it is on") \ |
923 "Print native memory tracking summary data if it is on") \ |
917 \ |
924 \ |
918 diagnostic(bool, AutoShutdownNMT, true, \ |
925 diagnostic(bool, AutoShutdownNMT, true, \ |
919 "Automatically shutdown native memory tracking under stress " \ |
926 "Automatically shutdown native memory tracking under stress " \ |
920 "situation. When set to false, native memory tracking tries to " \ |
927 "situations. When set to false, native memory tracking tries to " \ |
921 "stay alive at the expense of JVM performance") \ |
928 "stay alive at the expense of JVM performance") \ |
922 \ |
929 \ |
923 diagnostic(bool, LogCompilation, false, \ |
930 diagnostic(bool, LogCompilation, false, \ |
924 "Log compilation activity in detail to LogFile") \ |
931 "Log compilation activity in detail to LogFile") \ |
925 \ |
932 \ |
926 product(bool, PrintCompilation, false, \ |
933 product(bool, PrintCompilation, false, \ |
927 "Print compilations") \ |
934 "Print compilations") \ |
928 \ |
935 \ |
929 diagnostic(bool, TraceNMethodInstalls, false, \ |
936 diagnostic(bool, TraceNMethodInstalls, false, \ |
930 "Trace nmethod intallation") \ |
937 "Trace nmethod installation") \ |
931 \ |
938 \ |
932 diagnostic(intx, ScavengeRootsInCode, 2, \ |
939 diagnostic(intx, ScavengeRootsInCode, 2, \ |
933 "0: do not allow scavengable oops in the code cache; " \ |
940 "0: do not allow scavengable oops in the code cache; " \ |
934 "1: allow scavenging from the code cache; " \ |
941 "1: allow scavenging from the code cache; " \ |
935 "2: emit as many constants as the compiler can see") \ |
942 "2: emit as many constants as the compiler can see") \ |
936 \ |
943 \ |
937 product(bool, AlwaysRestoreFPU, false, \ |
944 product(bool, AlwaysRestoreFPU, false, \ |
938 "Restore the FPU control word after every JNI call (expensive)") \ |
945 "Restore the FPU control word after every JNI call (expensive)") \ |
939 \ |
946 \ |
940 diagnostic(bool, PrintCompilation2, false, \ |
947 diagnostic(bool, PrintCompilation2, false, \ |
972 \ |
979 \ |
973 develop(bool, PrintExceptionHandlers, false, \ |
980 develop(bool, PrintExceptionHandlers, false, \ |
974 "Print exception handler tables for all nmethods when generated") \ |
981 "Print exception handler tables for all nmethods when generated") \ |
975 \ |
982 \ |
976 develop(bool, StressCompiledExceptionHandlers, false, \ |
983 develop(bool, StressCompiledExceptionHandlers, false, \ |
977 "Exercise compiled exception handlers") \ |
984 "Exercise compiled exception handlers") \ |
978 \ |
985 \ |
979 develop(bool, InterceptOSException, false, \ |
986 develop(bool, InterceptOSException, false, \ |
980 "Starts debugger when an implicit OS (e.g., NULL) " \ |
987 "Start debugger when an implicit OS (e.g. NULL) " \ |
981 "exception happens") \ |
988 "exception happens") \ |
982 \ |
989 \ |
983 product(bool, PrintCodeCache, false, \ |
990 product(bool, PrintCodeCache, false, \ |
984 "Print the code cache memory usage when exiting") \ |
991 "Print the code cache memory usage when exiting") \ |
985 \ |
992 \ |
986 develop(bool, PrintCodeCache2, false, \ |
993 develop(bool, PrintCodeCache2, false, \ |
987 "Print detailed usage info on the code cache when exiting") \ |
994 "Print detailed usage information on the code cache when exiting")\ |
988 \ |
995 \ |
989 product(bool, PrintCodeCacheOnCompilation, false, \ |
996 product(bool, PrintCodeCacheOnCompilation, false, \ |
990 "Print the code cache memory usage each time a method is compiled") \ |
997 "Print the code cache memory usage each time a method is " \ |
|
998 "compiled") \ |
991 \ |
999 \ |
992 diagnostic(bool, PrintStubCode, false, \ |
1000 diagnostic(bool, PrintStubCode, false, \ |
993 "Print generated stub code") \ |
1001 "Print generated stub code") \ |
994 \ |
1002 \ |
995 product(bool, StackTraceInThrowable, true, \ |
1003 product(bool, StackTraceInThrowable, true, \ |
997 \ |
1005 \ |
998 product(bool, OmitStackTraceInFastThrow, true, \ |
1006 product(bool, OmitStackTraceInFastThrow, true, \ |
999 "Omit backtraces for some 'hot' exceptions in optimized code") \ |
1007 "Omit backtraces for some 'hot' exceptions in optimized code") \ |
1000 \ |
1008 \ |
1001 product(bool, ProfilerPrintByteCodeStatistics, false, \ |
1009 product(bool, ProfilerPrintByteCodeStatistics, false, \ |
1002 "Prints byte code statictics when dumping profiler output") \ |
1010 "Print bytecode statistics when dumping profiler output") \ |
1003 \ |
1011 \ |
1004 product(bool, ProfilerRecordPC, false, \ |
1012 product(bool, ProfilerRecordPC, false, \ |
1005 "Collects tick for each 16 byte interval of compiled code") \ |
1013 "Collect ticks for each 16 byte interval of compiled code") \ |
1006 \ |
1014 \ |
1007 product(bool, ProfileVM, false, \ |
1015 product(bool, ProfileVM, false, \ |
1008 "Profiles ticks that fall within VM (either in the VM Thread " \ |
1016 "Profile ticks that fall within VM (either in the VM Thread " \ |
1009 "or VM code called through stubs)") \ |
1017 "or VM code called through stubs)") \ |
1010 \ |
1018 \ |
1011 product(bool, ProfileIntervals, false, \ |
1019 product(bool, ProfileIntervals, false, \ |
1012 "Prints profiles for each interval (see ProfileIntervalsTicks)") \ |
1020 "Print profiles for each interval (see ProfileIntervalsTicks)") \ |
1013 \ |
1021 \ |
1014 notproduct(bool, ProfilerCheckIntervals, false, \ |
1022 notproduct(bool, ProfilerCheckIntervals, false, \ |
1015 "Collect and print info on spacing of profiler ticks") \ |
1023 "Collect and print information on spacing of profiler ticks") \ |
1016 \ |
1024 \ |
1017 develop(bool, PrintJVMWarnings, false, \ |
1025 develop(bool, PrintJVMWarnings, false, \ |
1018 "Prints warnings for unimplemented JVM functions") \ |
1026 "Print warnings for unimplemented JVM functions") \ |
1019 \ |
1027 \ |
1020 product(bool, PrintWarnings, true, \ |
1028 product(bool, PrintWarnings, true, \ |
1021 "Prints JVM warnings to output stream") \ |
1029 "Print JVM warnings to output stream") \ |
1022 \ |
1030 \ |
1023 notproduct(uintx, WarnOnStalledSpinLock, 0, \ |
1031 notproduct(uintx, WarnOnStalledSpinLock, 0, \ |
1024 "Prints warnings for stalled SpinLocks") \ |
1032 "Print warnings for stalled SpinLocks") \ |
1025 \ |
1033 \ |
1026 product(bool, RegisterFinalizersAtInit, true, \ |
1034 product(bool, RegisterFinalizersAtInit, true, \ |
1027 "Register finalizable objects at end of Object.<init> or " \ |
1035 "Register finalizable objects at end of Object.<init> or " \ |
1028 "after allocation") \ |
1036 "after allocation") \ |
1029 \ |
1037 \ |
1030 develop(bool, RegisterReferences, true, \ |
1038 develop(bool, RegisterReferences, true, \ |
1031 "Tells whether the VM should register soft/weak/final/phantom " \ |
1039 "Tell whether the VM should register soft/weak/final/phantom " \ |
1032 "references") \ |
1040 "references") \ |
1033 \ |
1041 \ |
1034 develop(bool, IgnoreRewrites, false, \ |
1042 develop(bool, IgnoreRewrites, false, \ |
1035 "Supress rewrites of bytecodes in the oopmap generator. " \ |
1043 "Suppress rewrites of bytecodes in the oopmap generator. " \ |
1036 "This is unsafe!") \ |
1044 "This is unsafe!") \ |
1037 \ |
1045 \ |
1038 develop(bool, PrintCodeCacheExtension, false, \ |
1046 develop(bool, PrintCodeCacheExtension, false, \ |
1039 "Print extension of code cache") \ |
1047 "Print extension of code cache") \ |
1040 \ |
1048 \ |
1041 develop(bool, UsePrivilegedStack, true, \ |
1049 develop(bool, UsePrivilegedStack, true, \ |
1042 "Enable the security JVM functions") \ |
1050 "Enable the security JVM functions") \ |
1043 \ |
1051 \ |
1044 develop(bool, ProtectionDomainVerification, true, \ |
1052 develop(bool, ProtectionDomainVerification, true, \ |
1045 "Verifies protection domain before resolution in system " \ |
1053 "Verify protection domain before resolution in system dictionary")\ |
1046 "dictionary") \ |
|
1047 \ |
1054 \ |
1048 product(bool, ClassUnloading, true, \ |
1055 product(bool, ClassUnloading, true, \ |
1049 "Do unloading of classes") \ |
1056 "Do unloading of classes") \ |
1050 \ |
1057 \ |
1051 develop(bool, DisableStartThread, false, \ |
1058 develop(bool, DisableStartThread, false, \ |
1077 \ |
1084 \ |
1078 product(bool, MustCallLoadClassInternal, false, \ |
1085 product(bool, MustCallLoadClassInternal, false, \ |
1079 "Call loadClassInternal() rather than loadClass()") \ |
1086 "Call loadClassInternal() rather than loadClass()") \ |
1080 \ |
1087 \ |
1081 product_pd(bool, DontYieldALot, \ |
1088 product_pd(bool, DontYieldALot, \ |
1082 "Throw away obvious excess yield calls (for SOLARIS only)") \ |
1089 "Throw away obvious excess yield calls (for Solaris only)") \ |
1083 \ |
1090 \ |
1084 product_pd(bool, ConvertSleepToYield, \ |
1091 product_pd(bool, ConvertSleepToYield, \ |
1085 "Converts sleep(0) to thread yield " \ |
1092 "Convert sleep(0) to thread yield " \ |
1086 "(may be off for SOLARIS to improve GUI)") \ |
1093 "(may be off for Solaris to improve GUI)") \ |
1087 \ |
1094 \ |
1088 product(bool, ConvertYieldToSleep, false, \ |
1095 product(bool, ConvertYieldToSleep, false, \ |
1089 "Converts yield to a sleep of MinSleepInterval to simulate Win32 "\ |
1096 "Convert yield to a sleep of MinSleepInterval to simulate Win32 " \ |
1090 "behavior (SOLARIS only)") \ |
1097 "behavior (Solaris only)") \ |
1091 \ |
1098 \ |
1092 product(bool, UseBoundThreads, true, \ |
1099 product(bool, UseBoundThreads, true, \ |
1093 "Bind user level threads to kernel threads (for SOLARIS only)") \ |
1100 "Bind user level threads to kernel threads (for Solaris only)") \ |
1094 \ |
1101 \ |
1095 develop(bool, UseDetachedThreads, true, \ |
1102 develop(bool, UseDetachedThreads, true, \ |
1096 "Use detached threads that are recycled upon termination " \ |
1103 "Use detached threads that are recycled upon termination " \ |
1097 "(for SOLARIS only)") \ |
1104 "(for Solaris only)") \ |
1098 \ |
1105 \ |
1099 product(bool, UseLWPSynchronization, true, \ |
1106 product(bool, UseLWPSynchronization, true, \ |
1100 "Use LWP-based instead of libthread-based synchronization " \ |
1107 "Use LWP-based instead of libthread-based synchronization " \ |
1101 "(SPARC only)") \ |
1108 "(SPARC only)") \ |
1102 \ |
1109 \ |
1103 product(ccstr, SyncKnobs, NULL, \ |
1110 product(ccstr, SyncKnobs, NULL, \ |
1104 "(Unstable) Various monitor synchronization tunables") \ |
1111 "(Unstable) Various monitor synchronization tunables") \ |
1105 \ |
1112 \ |
1106 product(intx, EmitSync, 0, \ |
1113 product(intx, EmitSync, 0, \ |
1107 "(Unsafe,Unstable) " \ |
1114 "(Unsafe, Unstable) " \ |
1108 " Controls emission of inline sync fast-path code") \ |
1115 "Control emission of inline sync fast-path code") \ |
1109 \ |
1116 \ |
1110 product(intx, MonitorBound, 0, "Bound Monitor population") \ |
1117 product(intx, MonitorBound, 0, "Bound Monitor population") \ |
1111 \ |
1118 \ |
1112 product(bool, MonitorInUseLists, false, "Track Monitors for Deflation") \ |
1119 product(bool, MonitorInUseLists, false, "Track Monitors for Deflation") \ |
1113 \ |
1120 \ |
1114 product(intx, SyncFlags, 0, "(Unsafe,Unstable) Experimental Sync flags" ) \ |
1121 product(intx, SyncFlags, 0, "(Unsafe, Unstable) Experimental Sync flags") \ |
1115 \ |
1122 \ |
1116 product(intx, SyncVerbose, 0, "(Unstable)" ) \ |
1123 product(intx, SyncVerbose, 0, "(Unstable)") \ |
1117 \ |
1124 \ |
1118 product(intx, ClearFPUAtPark, 0, "(Unsafe,Unstable)" ) \ |
1125 product(intx, ClearFPUAtPark, 0, "(Unsafe, Unstable)") \ |
1119 \ |
1126 \ |
1120 product(intx, hashCode, 5, \ |
1127 product(intx, hashCode, 5, \ |
1121 "(Unstable) select hashCode generation algorithm" ) \ |
1128 "(Unstable) select hashCode generation algorithm") \ |
1122 \ |
1129 \ |
1123 product(intx, WorkAroundNPTLTimedWaitHang, 1, \ |
1130 product(intx, WorkAroundNPTLTimedWaitHang, 1, \ |
1124 "(Unstable, Linux-specific)" \ |
1131 "(Unstable, Linux-specific) " \ |
1125 " avoid NPTL-FUTEX hang pthread_cond_timedwait" ) \ |
1132 "avoid NPTL-FUTEX hang pthread_cond_timedwait") \ |
1126 \ |
1133 \ |
1127 product(bool, FilterSpuriousWakeups, true, \ |
1134 product(bool, FilterSpuriousWakeups, true, \ |
1128 "Prevent spurious or premature wakeups from object.wait " \ |
1135 "Prevent spurious or premature wakeups from object.wait " \ |
1129 "(Solaris only)") \ |
1136 "(Solaris only)") \ |
1130 \ |
1137 \ |
1131 product(intx, NativeMonitorTimeout, -1, "(Unstable)" ) \ |
1138 product(intx, NativeMonitorTimeout, -1, "(Unstable)") \ |
1132 product(intx, NativeMonitorFlags, 0, "(Unstable)" ) \ |
1139 \ |
1133 product(intx, NativeMonitorSpinLimit, 20, "(Unstable)" ) \ |
1140 product(intx, NativeMonitorFlags, 0, "(Unstable)") \ |
|
1141 \ |
|
1142 product(intx, NativeMonitorSpinLimit, 20, "(Unstable)") \ |
1134 \ |
1143 \ |
1135 develop(bool, UsePthreads, false, \ |
1144 develop(bool, UsePthreads, false, \ |
1136 "Use pthread-based instead of libthread-based synchronization " \ |
1145 "Use pthread-based instead of libthread-based synchronization " \ |
1137 "(SPARC only)") \ |
1146 "(SPARC only)") \ |
1138 \ |
1147 \ |
1139 product(bool, AdjustConcurrency, false, \ |
1148 product(bool, AdjustConcurrency, false, \ |
1140 "call thr_setconcurrency at thread create time to avoid " \ |
1149 "Call thr_setconcurrency at thread creation time to avoid " \ |
1141 "LWP starvation on MP systems (For Solaris Only)") \ |
1150 "LWP starvation on MP systems (for Solaris Only)") \ |
1142 \ |
1151 \ |
1143 product(bool, ReduceSignalUsage, false, \ |
1152 product(bool, ReduceSignalUsage, false, \ |
1144 "Reduce the use of OS signals in Java and/or the VM") \ |
1153 "Reduce the use of OS signals in Java and/or the VM") \ |
1145 \ |
1154 \ |
1146 develop_pd(bool, ShareVtableStubs, \ |
1155 develop_pd(bool, ShareVtableStubs, \ |
1147 "Share vtable stubs (smaller code but worse branch prediction") \ |
1156 "Share vtable stubs (smaller code but worse branch prediction") \ |
1148 \ |
1157 \ |
1149 develop(bool, LoadLineNumberTables, true, \ |
1158 develop(bool, LoadLineNumberTables, true, \ |
1150 "Tells whether the class file parser loads line number tables") \ |
1159 "Tell whether the class file parser loads line number tables") \ |
1151 \ |
1160 \ |
1152 develop(bool, LoadLocalVariableTables, true, \ |
1161 develop(bool, LoadLocalVariableTables, true, \ |
1153 "Tells whether the class file parser loads local variable tables")\ |
1162 "Tell whether the class file parser loads local variable tables") \ |
1154 \ |
1163 \ |
1155 develop(bool, LoadLocalVariableTypeTables, true, \ |
1164 develop(bool, LoadLocalVariableTypeTables, true, \ |
1156 "Tells whether the class file parser loads local variable type tables")\ |
1165 "Tell whether the class file parser loads local variable type" \ |
|
1166 "tables") \ |
1157 \ |
1167 \ |
1158 product(bool, AllowUserSignalHandlers, false, \ |
1168 product(bool, AllowUserSignalHandlers, false, \ |
1159 "Do not complain if the application installs signal handlers " \ |
1169 "Do not complain if the application installs signal handlers " \ |
1160 "(Solaris & Linux only)") \ |
1170 "(Solaris & Linux only)") \ |
1161 \ |
1171 \ |
1366 \ |
1378 \ |
1367 product(uintx, HeapFirstMaximumCompactionCount, 3, \ |
1379 product(uintx, HeapFirstMaximumCompactionCount, 3, \ |
1368 "The collection count for the first maximum compaction") \ |
1380 "The collection count for the first maximum compaction") \ |
1369 \ |
1381 \ |
1370 product(bool, UseMaximumCompactionOnSystemGC, true, \ |
1382 product(bool, UseMaximumCompactionOnSystemGC, true, \ |
1371 "In the Parallel Old garbage collector maximum compaction for " \ |
1383 "Use maximum compaction in the Parallel Old garbage collector " \ |
1372 "a system GC") \ |
1384 "for a system GC") \ |
1373 \ |
1385 \ |
1374 product(uintx, ParallelOldDeadWoodLimiterMean, 50, \ |
1386 product(uintx, ParallelOldDeadWoodLimiterMean, 50, \ |
1375 "The mean used by the par compact dead wood" \ |
1387 "The mean used by the parallel compact dead wood " \ |
1376 "limiter (a number between 0-100).") \ |
1388 "limiter (a number between 0-100)") \ |
1377 \ |
1389 \ |
1378 product(uintx, ParallelOldDeadWoodLimiterStdDev, 80, \ |
1390 product(uintx, ParallelOldDeadWoodLimiterStdDev, 80, \ |
1379 "The standard deviation used by the par compact dead wood" \ |
1391 "The standard deviation used by the parallel compact dead wood " \ |
1380 "limiter (a number between 0-100).") \ |
1392 "limiter (a number between 0-100)") \ |
1381 \ |
1393 \ |
1382 product(uintx, ParallelGCThreads, 0, \ |
1394 product(uintx, ParallelGCThreads, 0, \ |
1383 "Number of parallel threads parallel gc will use") \ |
1395 "Number of parallel threads parallel gc will use") \ |
1384 \ |
1396 \ |
1385 product(bool, UseDynamicNumberOfGCThreads, false, \ |
1397 product(bool, UseDynamicNumberOfGCThreads, false, \ |
1386 "Dynamically choose the number of parallel threads " \ |
1398 "Dynamically choose the number of parallel threads " \ |
1387 "parallel gc will use") \ |
1399 "parallel gc will use") \ |
1388 \ |
1400 \ |
1389 diagnostic(bool, ForceDynamicNumberOfGCThreads, false, \ |
1401 diagnostic(bool, ForceDynamicNumberOfGCThreads, false, \ |
1390 "Force dynamic selection of the number of" \ |
1402 "Force dynamic selection of the number of " \ |
1391 "parallel threads parallel gc will use to aid debugging") \ |
1403 "parallel threads parallel gc will use to aid debugging") \ |
1392 \ |
1404 \ |
1393 product(uintx, HeapSizePerGCThread, ScaleForWordSize(64*M), \ |
1405 product(uintx, HeapSizePerGCThread, ScaleForWordSize(64*M), \ |
1394 "Size of heap (bytes) per GC thread used in calculating the " \ |
1406 "Size of heap (bytes) per GC thread used in calculating the " \ |
1395 "number of GC threads") \ |
1407 "number of GC threads") \ |
1396 \ |
1408 \ |
1397 product(bool, TraceDynamicGCThreads, false, \ |
1409 product(bool, TraceDynamicGCThreads, false, \ |
1398 "Trace the dynamic GC thread usage") \ |
1410 "Trace the dynamic GC thread usage") \ |
1399 \ |
1411 \ |
1400 develop(bool, ParallelOldGCSplitALot, false, \ |
1412 develop(bool, ParallelOldGCSplitALot, false, \ |
1401 "Provoke splitting (copying data from a young gen space to" \ |
1413 "Provoke splitting (copying data from a young gen space to " \ |
1402 "multiple destination spaces)") \ |
1414 "multiple destination spaces)") \ |
1403 \ |
1415 \ |
1404 develop(uintx, ParallelOldGCSplitInterval, 3, \ |
1416 develop(uintx, ParallelOldGCSplitInterval, 3, \ |
1405 "How often to provoke splitting a young gen space") \ |
1417 "How often to provoke splitting a young gen space") \ |
1406 \ |
1418 \ |
1407 product(uintx, ConcGCThreads, 0, \ |
1419 product(uintx, ConcGCThreads, 0, \ |
1408 "Number of threads concurrent gc will use") \ |
1420 "Number of threads concurrent gc will use") \ |
1409 \ |
1421 \ |
1410 product(uintx, YoungPLABSize, 4096, \ |
1422 product(uintx, YoungPLABSize, 4096, \ |
1411 "Size of young gen promotion labs (in HeapWords)") \ |
1423 "Size of young gen promotion LAB's (in HeapWords)") \ |
1412 \ |
1424 \ |
1413 product(uintx, OldPLABSize, 1024, \ |
1425 product(uintx, OldPLABSize, 1024, \ |
1414 "Size of old gen promotion labs (in HeapWords)") \ |
1426 "Size of old gen promotion LAB's (in HeapWords)") \ |
1415 \ |
1427 \ |
1416 product(uintx, GCTaskTimeStampEntries, 200, \ |
1428 product(uintx, GCTaskTimeStampEntries, 200, \ |
1417 "Number of time stamp entries per gc worker thread") \ |
1429 "Number of time stamp entries per gc worker thread") \ |
1418 \ |
1430 \ |
1419 product(bool, AlwaysTenure, false, \ |
1431 product(bool, AlwaysTenure, false, \ |
1420 "Always tenure objects in eden. (ParallelGC only)") \ |
1432 "Always tenure objects in eden (ParallelGC only)") \ |
1421 \ |
1433 \ |
1422 product(bool, NeverTenure, false, \ |
1434 product(bool, NeverTenure, false, \ |
1423 "Never tenure objects in eden, May tenure on overflow " \ |
1435 "Never tenure objects in eden, may tenure on overflow " \ |
1424 "(ParallelGC only)") \ |
1436 "(ParallelGC only)") \ |
1425 \ |
1437 \ |
1426 product(bool, ScavengeBeforeFullGC, true, \ |
1438 product(bool, ScavengeBeforeFullGC, true, \ |
1427 "Scavenge youngest generation before each full GC, " \ |
1439 "Scavenge youngest generation before each full GC, " \ |
1428 "used with UseParallelGC") \ |
1440 "used with UseParallelGC") \ |
1429 \ |
1441 \ |
1430 develop(bool, ScavengeWithObjectsInToSpace, false, \ |
1442 develop(bool, ScavengeWithObjectsInToSpace, false, \ |
1431 "Allow scavenges to occur when to_space contains objects.") \ |
1443 "Allow scavenges to occur when to-space contains objects") \ |
1432 \ |
1444 \ |
1433 product(bool, UseConcMarkSweepGC, false, \ |
1445 product(bool, UseConcMarkSweepGC, false, \ |
1434 "Use Concurrent Mark-Sweep GC in the old generation") \ |
1446 "Use Concurrent Mark-Sweep GC in the old generation") \ |
1435 \ |
1447 \ |
1436 product(bool, ExplicitGCInvokesConcurrent, false, \ |
1448 product(bool, ExplicitGCInvokesConcurrent, false, \ |
1437 "A System.gc() request invokes a concurrent collection;" \ |
1449 "A System.gc() request invokes a concurrent collection; " \ |
1438 " (effective only when UseConcMarkSweepGC)") \ |
1450 "(effective only when UseConcMarkSweepGC)") \ |
1439 \ |
1451 \ |
1440 product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false, \ |
1452 product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false, \ |
1441 "A System.gc() request invokes a concurrent collection and " \ |
1453 "A System.gc() request invokes a concurrent collection and " \ |
1442 "also unloads classes during such a concurrent gc cycle " \ |
1454 "also unloads classes during such a concurrent gc cycle " \ |
1443 "(effective only when UseConcMarkSweepGC)") \ |
1455 "(effective only when UseConcMarkSweepGC)") \ |
1444 \ |
1456 \ |
1445 product(bool, GCLockerInvokesConcurrent, false, \ |
1457 product(bool, GCLockerInvokesConcurrent, false, \ |
1446 "The exit of a JNI CS necessitating a scavenge also" \ |
1458 "The exit of a JNI critical section necessitating a scavenge, " \ |
1447 " kicks off a bkgrd concurrent collection") \ |
1459 "also kicks off a background concurrent collection") \ |
1448 \ |
1460 \ |
1449 product(uintx, GCLockerEdenExpansionPercent, 5, \ |
1461 product(uintx, GCLockerEdenExpansionPercent, 5, \ |
1450 "How much the GC can expand the eden by while the GC locker " \ |
1462 "How much the GC can expand the eden by while the GC locker " \ |
1451 "is active (as a percentage)") \ |
1463 "is active (as a percentage)") \ |
1452 \ |
1464 \ |
1453 diagnostic(intx, GCLockerRetryAllocationCount, 2, \ |
1465 diagnostic(intx, GCLockerRetryAllocationCount, 2, \ |
1454 "Number of times to retry allocations when" \ |
1466 "Number of times to retry allocations when " \ |
1455 " blocked by the GC locker") \ |
1467 "blocked by the GC locker") \ |
1456 \ |
1468 \ |
1457 develop(bool, UseCMSAdaptiveFreeLists, true, \ |
1469 develop(bool, UseCMSAdaptiveFreeLists, true, \ |
1458 "Use Adaptive Free Lists in the CMS generation") \ |
1470 "Use adaptive free lists in the CMS generation") \ |
1459 \ |
1471 \ |
1460 develop(bool, UseAsyncConcMarkSweepGC, true, \ |
1472 develop(bool, UseAsyncConcMarkSweepGC, true, \ |
1461 "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\ |
1473 "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\ |
1462 \ |
1474 \ |
1463 develop(bool, RotateCMSCollectionTypes, false, \ |
1475 develop(bool, RotateCMSCollectionTypes, false, \ |
1468 \ |
1480 \ |
1469 product(bool, UseCMSCollectionPassing, true, \ |
1481 product(bool, UseCMSCollectionPassing, true, \ |
1470 "Use passing of collection from background to foreground") \ |
1482 "Use passing of collection from background to foreground") \ |
1471 \ |
1483 \ |
1472 product(bool, UseParNewGC, false, \ |
1484 product(bool, UseParNewGC, false, \ |
1473 "Use parallel threads in the new generation.") \ |
1485 "Use parallel threads in the new generation") \ |
1474 \ |
1486 \ |
1475 product(bool, ParallelGCVerbose, false, \ |
1487 product(bool, ParallelGCVerbose, false, \ |
1476 "Verbose output for parallel GC.") \ |
1488 "Verbose output for parallel gc") \ |
1477 \ |
1489 \ |
1478 product(uintx, ParallelGCBufferWastePct, 10, \ |
1490 product(uintx, ParallelGCBufferWastePct, 10, \ |
1479 "Wasted fraction of parallel allocation buffer.") \ |
1491 "Wasted fraction of parallel allocation buffer") \ |
1480 \ |
1492 \ |
1481 diagnostic(bool, ParallelGCRetainPLAB, false, \ |
1493 diagnostic(bool, ParallelGCRetainPLAB, false, \ |
1482 "Retain parallel allocation buffers across scavenges; " \ |
1494 "Retain parallel allocation buffers across scavenges; " \ |
1483 " -- disabled because this currently conflicts with " \ |
1495 "it is disabled because this currently conflicts with " \ |
1484 " parallel card scanning under certain conditions ") \ |
1496 "parallel card scanning under certain conditions.") \ |
1485 \ |
1497 \ |
1486 product(uintx, TargetPLABWastePct, 10, \ |
1498 product(uintx, TargetPLABWastePct, 10, \ |
1487 "Target wasted space in last buffer as percent of overall " \ |
1499 "Target wasted space in last buffer as percent of overall " \ |
1488 "allocation") \ |
1500 "allocation") \ |
1489 \ |
1501 \ |
1490 product(uintx, PLABWeight, 75, \ |
1502 product(uintx, PLABWeight, 75, \ |
1491 "Percentage (0-100) used to weight the current sample when" \ |
1503 "Percentage (0-100) used to weigh the current sample when " \ |
1492 "computing exponentially decaying average for ResizePLAB.") \ |
1504 "computing exponentially decaying average for ResizePLAB") \ |
1493 \ |
1505 \ |
1494 product(bool, ResizePLAB, true, \ |
1506 product(bool, ResizePLAB, true, \ |
1495 "Dynamically resize (survivor space) promotion labs") \ |
1507 "Dynamically resize (survivor space) promotion LAB's") \ |
1496 \ |
1508 \ |
1497 product(bool, PrintPLAB, false, \ |
1509 product(bool, PrintPLAB, false, \ |
1498 "Print (survivor space) promotion labs sizing decisions") \ |
1510 "Print (survivor space) promotion LAB's sizing decisions") \ |
1499 \ |
1511 \ |
1500 product(intx, ParGCArrayScanChunk, 50, \ |
1512 product(intx, ParGCArrayScanChunk, 50, \ |
1501 "Scan a subset and push remainder, if array is bigger than this") \ |
1513 "Scan a subset of object array and push remainder, if array is " \ |
|
1514 "bigger than this") \ |
1502 \ |
1515 \ |
1503 product(bool, ParGCUseLocalOverflow, false, \ |
1516 product(bool, ParGCUseLocalOverflow, false, \ |
1504 "Instead of a global overflow list, use local overflow stacks") \ |
1517 "Instead of a global overflow list, use local overflow stacks") \ |
1505 \ |
1518 \ |
1506 product(bool, ParGCTrimOverflow, true, \ |
1519 product(bool, ParGCTrimOverflow, true, \ |
1507 "Eagerly trim the local overflow lists (when ParGCUseLocalOverflow") \ |
1520 "Eagerly trim the local overflow lists " \ |
|
1521 "(when ParGCUseLocalOverflow)") \ |
1508 \ |
1522 \ |
1509 notproduct(bool, ParGCWorkQueueOverflowALot, false, \ |
1523 notproduct(bool, ParGCWorkQueueOverflowALot, false, \ |
1510 "Whether we should simulate work queue overflow in ParNew") \ |
1524 "Simulate work queue overflow in ParNew") \ |
1511 \ |
1525 \ |
1512 notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000, \ |
1526 notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000, \ |
1513 "An `interval' counter that determines how frequently " \ |
1527 "An `interval' counter that determines how frequently " \ |
1514 "we simulate overflow; a smaller number increases frequency") \ |
1528 "we simulate overflow; a smaller number increases frequency") \ |
1515 \ |
1529 \ |
1523 diagnostic(intx, ParGCCardsPerStrideChunk, 256, \ |
1537 diagnostic(intx, ParGCCardsPerStrideChunk, 256, \ |
1524 "The number of cards in each chunk of the parallel chunks used " \ |
1538 "The number of cards in each chunk of the parallel chunks used " \ |
1525 "during card table scanning") \ |
1539 "during card table scanning") \ |
1526 \ |
1540 \ |
1527 product(uintx, CMSParPromoteBlocksToClaim, 16, \ |
1541 product(uintx, CMSParPromoteBlocksToClaim, 16, \ |
1528 "Number of blocks to attempt to claim when refilling CMS LAB for "\ |
1542 "Number of blocks to attempt to claim when refilling CMS LAB's " \ |
1529 "parallel GC.") \ |
1543 "for parallel GC") \ |
1530 \ |
1544 \ |
1531 product(uintx, OldPLABWeight, 50, \ |
1545 product(uintx, OldPLABWeight, 50, \ |
1532 "Percentage (0-100) used to weight the current sample when" \ |
1546 "Percentage (0-100) used to weight the current sample when " \ |
1533 "computing exponentially decaying average for resizing CMSParPromoteBlocksToClaim.") \ |
1547 "computing exponentially decaying average for resizing " \ |
|
1548 "CMSParPromoteBlocksToClaim") \ |
1534 \ |
1549 \ |
1535 product(bool, ResizeOldPLAB, true, \ |
1550 product(bool, ResizeOldPLAB, true, \ |
1536 "Dynamically resize (old gen) promotion labs") \ |
1551 "Dynamically resize (old gen) promotion LAB's") \ |
1537 \ |
1552 \ |
1538 product(bool, PrintOldPLAB, false, \ |
1553 product(bool, PrintOldPLAB, false, \ |
1539 "Print (old gen) promotion labs sizing decisions") \ |
1554 "Print (old gen) promotion LAB's sizing decisions") \ |
1540 \ |
1555 \ |
1541 product(uintx, CMSOldPLABMin, 16, \ |
1556 product(uintx, CMSOldPLABMin, 16, \ |
1542 "Min size of CMS gen promotion lab caches per worker per blksize")\ |
1557 "Minimum size of CMS gen promotion LAB caches per worker " \ |
|
1558 "per block size") \ |
1543 \ |
1559 \ |
1544 product(uintx, CMSOldPLABMax, 1024, \ |
1560 product(uintx, CMSOldPLABMax, 1024, \ |
1545 "Max size of CMS gen promotion lab caches per worker per blksize")\ |
1561 "Maximum size of CMS gen promotion LAB caches per worker " \ |
|
1562 "per block size") \ |
1546 \ |
1563 \ |
1547 product(uintx, CMSOldPLABNumRefills, 4, \ |
1564 product(uintx, CMSOldPLABNumRefills, 4, \ |
1548 "Nominal number of refills of CMS gen promotion lab cache" \ |
1565 "Nominal number of refills of CMS gen promotion LAB cache " \ |
1549 " per worker per block size") \ |
1566 "per worker per block size") \ |
1550 \ |
1567 \ |
1551 product(bool, CMSOldPLABResizeQuicker, false, \ |
1568 product(bool, CMSOldPLABResizeQuicker, false, \ |
1552 "Whether to react on-the-fly during a scavenge to a sudden" \ |
1569 "React on-the-fly during a scavenge to a sudden " \ |
1553 " change in block demand rate") \ |
1570 "change in block demand rate") \ |
1554 \ |
1571 \ |
1555 product(uintx, CMSOldPLABToleranceFactor, 4, \ |
1572 product(uintx, CMSOldPLABToleranceFactor, 4, \ |
1556 "The tolerance of the phase-change detector for on-the-fly" \ |
1573 "The tolerance of the phase-change detector for on-the-fly " \ |
1557 " PLAB resizing during a scavenge") \ |
1574 "PLAB resizing during a scavenge") \ |
1558 \ |
1575 \ |
1559 product(uintx, CMSOldPLABReactivityFactor, 2, \ |
1576 product(uintx, CMSOldPLABReactivityFactor, 2, \ |
1560 "The gain in the feedback loop for on-the-fly PLAB resizing" \ |
1577 "The gain in the feedback loop for on-the-fly PLAB resizing " \ |
1561 " during a scavenge") \ |
1578 "during a scavenge") \ |
1562 \ |
1579 \ |
1563 product(bool, AlwaysPreTouch, false, \ |
1580 product(bool, AlwaysPreTouch, false, \ |
1564 "It forces all freshly committed pages to be pre-touched.") \ |
1581 "Force all freshly committed pages to be pre-touched") \ |
1565 \ |
1582 \ |
1566 product_pd(uintx, CMSYoungGenPerWorker, \ |
1583 product_pd(uintx, CMSYoungGenPerWorker, \ |
1567 "The maximum size of young gen chosen by default per GC worker " \ |
1584 "The maximum size of young gen chosen by default per GC worker " \ |
1568 "thread available") \ |
1585 "thread available") \ |
1569 \ |
1586 \ |
1570 product(bool, CMSIncrementalMode, false, \ |
1587 product(bool, CMSIncrementalMode, false, \ |
1571 "Whether CMS GC should operate in \"incremental\" mode") \ |
1588 "Whether CMS GC should operate in \"incremental\" mode") \ |
1572 \ |
1589 \ |
1573 product(uintx, CMSIncrementalDutyCycle, 10, \ |
1590 product(uintx, CMSIncrementalDutyCycle, 10, \ |
1574 "CMS incremental mode duty cycle (a percentage, 0-100). If" \ |
1591 "Percentage (0-100) of CMS incremental mode duty cycle. If " \ |
1575 "CMSIncrementalPacing is enabled, then this is just the initial" \ |
1592 "CMSIncrementalPacing is enabled, then this is just the initial " \ |
1576 "value") \ |
1593 "value.") \ |
1577 \ |
1594 \ |
1578 product(bool, CMSIncrementalPacing, true, \ |
1595 product(bool, CMSIncrementalPacing, true, \ |
1579 "Whether the CMS incremental mode duty cycle should be " \ |
1596 "Whether the CMS incremental mode duty cycle should be " \ |
1580 "automatically adjusted") \ |
1597 "automatically adjusted") \ |
1581 \ |
1598 \ |
1582 product(uintx, CMSIncrementalDutyCycleMin, 0, \ |
1599 product(uintx, CMSIncrementalDutyCycleMin, 0, \ |
1583 "Lower bound on the duty cycle when CMSIncrementalPacing is " \ |
1600 "Minimum percentage (0-100) of the CMS incremental duty cycle " \ |
1584 "enabled (a percentage, 0-100)") \ |
1601 "used when CMSIncrementalPacing is enabled") \ |
1585 \ |
1602 \ |
1586 product(uintx, CMSIncrementalSafetyFactor, 10, \ |
1603 product(uintx, CMSIncrementalSafetyFactor, 10, \ |
1587 "Percentage (0-100) used to add conservatism when computing the " \ |
1604 "Percentage (0-100) used to add conservatism when computing the " \ |
1588 "duty cycle") \ |
1605 "duty cycle") \ |
1589 \ |
1606 \ |
1590 product(uintx, CMSIncrementalOffset, 0, \ |
1607 product(uintx, CMSIncrementalOffset, 0, \ |
1591 "Percentage (0-100) by which the CMS incremental mode duty cycle" \ |
1608 "Percentage (0-100) by which the CMS incremental mode duty cycle "\ |
1592 " is shifted to the right within the period between young GCs") \ |
1609 "is shifted to the right within the period between young GCs") \ |
1593 \ |
1610 \ |
1594 product(uintx, CMSExpAvgFactor, 50, \ |
1611 product(uintx, CMSExpAvgFactor, 50, \ |
1595 "Percentage (0-100) used to weight the current sample when" \ |
1612 "Percentage (0-100) used to weigh the current sample when " \ |
1596 "computing exponential averages for CMS statistics.") \ |
1613 "computing exponential averages for CMS statistics") \ |
1597 \ |
1614 \ |
1598 product(uintx, CMS_FLSWeight, 75, \ |
1615 product(uintx, CMS_FLSWeight, 75, \ |
1599 "Percentage (0-100) used to weight the current sample when" \ |
1616 "Percentage (0-100) used to weigh the current sample when " \ |
1600 "computing exponentially decating averages for CMS FLS statistics.") \ |
1617 "computing exponentially decaying averages for CMS FLS " \ |
|
1618 "statistics") \ |
1601 \ |
1619 \ |
1602 product(uintx, CMS_FLSPadding, 1, \ |
1620 product(uintx, CMS_FLSPadding, 1, \ |
1603 "The multiple of deviation from mean to use for buffering" \ |
1621 "The multiple of deviation from mean to use for buffering " \ |
1604 "against volatility in free list demand.") \ |
1622 "against volatility in free list demand") \ |
1605 \ |
1623 \ |
1606 product(uintx, FLSCoalescePolicy, 2, \ |
1624 product(uintx, FLSCoalescePolicy, 2, \ |
1607 "CMS: Aggression level for coalescing, increasing from 0 to 4") \ |
1625 "CMS: aggressiveness level for coalescing, increasing " \ |
|
1626 "from 0 to 4") \ |
1608 \ |
1627 \ |
1609 product(bool, FLSAlwaysCoalesceLarge, false, \ |
1628 product(bool, FLSAlwaysCoalesceLarge, false, \ |
1610 "CMS: Larger free blocks are always available for coalescing") \ |
1629 "CMS: larger free blocks are always available for coalescing") \ |
1611 \ |
1630 \ |
1612 product(double, FLSLargestBlockCoalesceProximity, 0.99, \ |
1631 product(double, FLSLargestBlockCoalesceProximity, 0.99, \ |
1613 "CMS: the smaller the percentage the greater the coalition force")\ |
1632 "CMS: the smaller the percentage the greater the coalescing " \ |
|
1633 "force") \ |
1614 \ |
1634 \ |
1615 product(double, CMSSmallCoalSurplusPercent, 1.05, \ |
1635 product(double, CMSSmallCoalSurplusPercent, 1.05, \ |
1616 "CMS: the factor by which to inflate estimated demand of small" \ |
1636 "CMS: the factor by which to inflate estimated demand of small " \ |
1617 " block sizes to prevent coalescing with an adjoining block") \ |
1637 "block sizes to prevent coalescing with an adjoining block") \ |
1618 \ |
1638 \ |
1619 product(double, CMSLargeCoalSurplusPercent, 0.95, \ |
1639 product(double, CMSLargeCoalSurplusPercent, 0.95, \ |
1620 "CMS: the factor by which to inflate estimated demand of large" \ |
1640 "CMS: the factor by which to inflate estimated demand of large " \ |
1621 " block sizes to prevent coalescing with an adjoining block") \ |
1641 "block sizes to prevent coalescing with an adjoining block") \ |
1622 \ |
1642 \ |
1623 product(double, CMSSmallSplitSurplusPercent, 1.10, \ |
1643 product(double, CMSSmallSplitSurplusPercent, 1.10, \ |
1624 "CMS: the factor by which to inflate estimated demand of small" \ |
1644 "CMS: the factor by which to inflate estimated demand of small " \ |
1625 " block sizes to prevent splitting to supply demand for smaller" \ |
1645 "block sizes to prevent splitting to supply demand for smaller " \ |
1626 " blocks") \ |
1646 "blocks") \ |
1627 \ |
1647 \ |
1628 product(double, CMSLargeSplitSurplusPercent, 1.00, \ |
1648 product(double, CMSLargeSplitSurplusPercent, 1.00, \ |
1629 "CMS: the factor by which to inflate estimated demand of large" \ |
1649 "CMS: the factor by which to inflate estimated demand of large " \ |
1630 " block sizes to prevent splitting to supply demand for smaller" \ |
1650 "block sizes to prevent splitting to supply demand for smaller " \ |
1631 " blocks") \ |
1651 "blocks") \ |
1632 \ |
1652 \ |
1633 product(bool, CMSExtrapolateSweep, false, \ |
1653 product(bool, CMSExtrapolateSweep, false, \ |
1634 "CMS: cushion for block demand during sweep") \ |
1654 "CMS: cushion for block demand during sweep") \ |
1635 \ |
1655 \ |
1636 product(uintx, CMS_SweepWeight, 75, \ |
1656 product(uintx, CMS_SweepWeight, 75, \ |
1686 \ |
1707 \ |
1687 product(bool, CMSLoopWarn, false, \ |
1708 product(bool, CMSLoopWarn, false, \ |
1688 "Warn in case of excessive CMS looping") \ |
1709 "Warn in case of excessive CMS looping") \ |
1689 \ |
1710 \ |
1690 develop(bool, CMSOverflowEarlyRestoration, false, \ |
1711 develop(bool, CMSOverflowEarlyRestoration, false, \ |
1691 "Whether preserved marks should be restored early") \ |
1712 "Restore preserved marks early") \ |
1692 \ |
1713 \ |
1693 product(uintx, MarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M), \ |
1714 product(uintx, MarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M), \ |
1694 "Size of marking stack") \ |
1715 "Size of marking stack") \ |
1695 \ |
1716 \ |
1696 product(uintx, MarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M), \ |
1717 product(uintx, MarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M), \ |
1697 "Max size of marking stack") \ |
1718 "Maximum size of marking stack") \ |
1698 \ |
1719 \ |
1699 notproduct(bool, CMSMarkStackOverflowALot, false, \ |
1720 notproduct(bool, CMSMarkStackOverflowALot, false, \ |
1700 "Whether we should simulate frequent marking stack / work queue" \ |
1721 "Simulate frequent marking stack / work queue overflow") \ |
1701 " overflow") \ |
|
1702 \ |
1722 \ |
1703 notproduct(uintx, CMSMarkStackOverflowInterval, 1000, \ |
1723 notproduct(uintx, CMSMarkStackOverflowInterval, 1000, \ |
1704 "An `interval' counter that determines how frequently" \ |
1724 "An \"interval\" counter that determines how frequently " \ |
1705 " we simulate overflow; a smaller number increases frequency") \ |
1725 "to simulate overflow; a smaller number increases frequency") \ |
1706 \ |
1726 \ |
1707 product(uintx, CMSMaxAbortablePrecleanLoops, 0, \ |
1727 product(uintx, CMSMaxAbortablePrecleanLoops, 0, \ |
1708 "(Temporary, subject to experimentation)" \ |
1728 "(Temporary, subject to experimentation) " \ |
1709 "Maximum number of abortable preclean iterations, if > 0") \ |
1729 "Maximum number of abortable preclean iterations, if > 0") \ |
1710 \ |
1730 \ |
1711 product(intx, CMSMaxAbortablePrecleanTime, 5000, \ |
1731 product(intx, CMSMaxAbortablePrecleanTime, 5000, \ |
1712 "(Temporary, subject to experimentation)" \ |
1732 "(Temporary, subject to experimentation) " \ |
1713 "Maximum time in abortable preclean in ms") \ |
1733 "Maximum time in abortable preclean (in milliseconds)") \ |
1714 \ |
1734 \ |
1715 product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100, \ |
1735 product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100, \ |
1716 "(Temporary, subject to experimentation)" \ |
1736 "(Temporary, subject to experimentation) " \ |
1717 "Nominal minimum work per abortable preclean iteration") \ |
1737 "Nominal minimum work per abortable preclean iteration") \ |
1718 \ |
1738 \ |
1719 manageable(intx, CMSAbortablePrecleanWaitMillis, 100, \ |
1739 manageable(intx, CMSAbortablePrecleanWaitMillis, 100, \ |
1720 "(Temporary, subject to experimentation)" \ |
1740 "(Temporary, subject to experimentation) " \ |
1721 " Time that we sleep between iterations when not given" \ |
1741 "Time that we sleep between iterations when not given " \ |
1722 " enough work per iteration") \ |
1742 "enough work per iteration") \ |
1723 \ |
1743 \ |
1724 product(uintx, CMSRescanMultiple, 32, \ |
1744 product(uintx, CMSRescanMultiple, 32, \ |
1725 "Size (in cards) of CMS parallel rescan task") \ |
1745 "Size (in cards) of CMS parallel rescan task") \ |
1726 \ |
1746 \ |
1727 product(uintx, CMSConcMarkMultiple, 32, \ |
1747 product(uintx, CMSConcMarkMultiple, 32, \ |
1735 \ |
1755 \ |
1736 product(bool, CMSParallelRemarkEnabled, true, \ |
1756 product(bool, CMSParallelRemarkEnabled, true, \ |
1737 "Whether parallel remark enabled (only if ParNewGC)") \ |
1757 "Whether parallel remark enabled (only if ParNewGC)") \ |
1738 \ |
1758 \ |
1739 product(bool, CMSParallelSurvivorRemarkEnabled, true, \ |
1759 product(bool, CMSParallelSurvivorRemarkEnabled, true, \ |
1740 "Whether parallel remark of survivor space" \ |
1760 "Whether parallel remark of survivor space " \ |
1741 " enabled (effective only if CMSParallelRemarkEnabled)") \ |
1761 "enabled (effective only if CMSParallelRemarkEnabled)") \ |
1742 \ |
1762 \ |
1743 product(bool, CMSPLABRecordAlways, true, \ |
1763 product(bool, CMSPLABRecordAlways, true, \ |
1744 "Whether to always record survivor space PLAB bdries" \ |
1764 "Always record survivor space PLAB boundaries (effective only " \ |
1745 " (effective only if CMSParallelSurvivorRemarkEnabled)") \ |
1765 "if CMSParallelSurvivorRemarkEnabled)") \ |
1746 \ |
1766 \ |
1747 product(bool, CMSEdenChunksRecordAlways, true, \ |
1767 product(bool, CMSEdenChunksRecordAlways, true, \ |
1748 "Whether to always record eden chunks used for " \ |
1768 "Always record eden chunks used for the parallel initial mark " \ |
1749 "the parallel initial mark or remark of eden" ) \ |
1769 "or remark of eden") \ |
1750 \ |
1770 \ |
1751 product(bool, CMSPrintEdenSurvivorChunks, false, \ |
1771 product(bool, CMSPrintEdenSurvivorChunks, false, \ |
1752 "Print the eden and the survivor chunks used for the parallel " \ |
1772 "Print the eden and the survivor chunks used for the parallel " \ |
1753 "initial mark or remark of the eden/survivor spaces") \ |
1773 "initial mark or remark of the eden/survivor spaces") \ |
1754 \ |
1774 \ |
1755 product(bool, CMSConcurrentMTEnabled, true, \ |
1775 product(bool, CMSConcurrentMTEnabled, true, \ |
1756 "Whether multi-threaded concurrent work enabled (if ParNewGC)") \ |
1776 "Whether multi-threaded concurrent work enabled " \ |
|
1777 "(effective only if ParNewGC)") \ |
1757 \ |
1778 \ |
1758 product(bool, CMSPrecleaningEnabled, true, \ |
1779 product(bool, CMSPrecleaningEnabled, true, \ |
1759 "Whether concurrent precleaning enabled") \ |
1780 "Whether concurrent precleaning enabled") \ |
1760 \ |
1781 \ |
1761 product(uintx, CMSPrecleanIter, 3, \ |
1782 product(uintx, CMSPrecleanIter, 3, \ |
1762 "Maximum number of precleaning iteration passes") \ |
1783 "Maximum number of precleaning iteration passes") \ |
1763 \ |
1784 \ |
1764 product(uintx, CMSPrecleanNumerator, 2, \ |
1785 product(uintx, CMSPrecleanNumerator, 2, \ |
1765 "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence" \ |
1786 "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence " \ |
1766 " ratio") \ |
1787 "ratio") \ |
1767 \ |
1788 \ |
1768 product(uintx, CMSPrecleanDenominator, 3, \ |
1789 product(uintx, CMSPrecleanDenominator, 3, \ |
1769 "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence" \ |
1790 "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence " \ |
1770 " ratio") \ |
1791 "ratio") \ |
1771 \ |
1792 \ |
1772 product(bool, CMSPrecleanRefLists1, true, \ |
1793 product(bool, CMSPrecleanRefLists1, true, \ |
1773 "Preclean ref lists during (initial) preclean phase") \ |
1794 "Preclean ref lists during (initial) preclean phase") \ |
1774 \ |
1795 \ |
1775 product(bool, CMSPrecleanRefLists2, false, \ |
1796 product(bool, CMSPrecleanRefLists2, false, \ |
1780 \ |
1801 \ |
1781 product(bool, CMSPrecleanSurvivors2, true, \ |
1802 product(bool, CMSPrecleanSurvivors2, true, \ |
1782 "Preclean survivors during abortable preclean phase") \ |
1803 "Preclean survivors during abortable preclean phase") \ |
1783 \ |
1804 \ |
1784 product(uintx, CMSPrecleanThreshold, 1000, \ |
1805 product(uintx, CMSPrecleanThreshold, 1000, \ |
1785 "Don't re-iterate if #dirty cards less than this") \ |
1806 "Do not iterate again if number of dirty cards is less than this")\ |
1786 \ |
1807 \ |
1787 product(bool, CMSCleanOnEnter, true, \ |
1808 product(bool, CMSCleanOnEnter, true, \ |
1788 "Clean-on-enter optimization for reducing number of dirty cards") \ |
1809 "Clean-on-enter optimization for reducing number of dirty cards") \ |
1789 \ |
1810 \ |
1790 product(uintx, CMSRemarkVerifyVariant, 1, \ |
1811 product(uintx, CMSRemarkVerifyVariant, 1, \ |
1791 "Choose variant (1,2) of verification following remark") \ |
1812 "Choose variant (1,2) of verification following remark") \ |
1792 \ |
1813 \ |
1793 product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M, \ |
1814 product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M, \ |
1794 "If Eden used is below this value, don't try to schedule remark") \ |
1815 "If Eden size is below this, do not try to schedule remark") \ |
1795 \ |
1816 \ |
1796 product(uintx, CMSScheduleRemarkEdenPenetration, 50, \ |
1817 product(uintx, CMSScheduleRemarkEdenPenetration, 50, \ |
1797 "The Eden occupancy % at which to try and schedule remark pause") \ |
1818 "The Eden occupancy percentage (0-100) at which " \ |
|
1819 "to try and schedule remark pause") \ |
1798 \ |
1820 \ |
1799 product(uintx, CMSScheduleRemarkSamplingRatio, 5, \ |
1821 product(uintx, CMSScheduleRemarkSamplingRatio, 5, \ |
1800 "Start sampling Eden top at least before yg occupancy reaches" \ |
1822 "Start sampling eden top at least before young gen " \ |
1801 " 1/<ratio> of the size at which we plan to schedule remark") \ |
1823 "occupancy reaches 1/<ratio> of the size at which " \ |
|
1824 "we plan to schedule remark") \ |
1802 \ |
1825 \ |
1803 product(uintx, CMSSamplingGrain, 16*K, \ |
1826 product(uintx, CMSSamplingGrain, 16*K, \ |
1804 "The minimum distance between eden samples for CMS (see above)") \ |
1827 "The minimum distance between eden samples for CMS (see above)") \ |
1805 \ |
1828 \ |
1806 product(bool, CMSScavengeBeforeRemark, false, \ |
1829 product(bool, CMSScavengeBeforeRemark, false, \ |
1818 develop(uintx, CMSCheckInterval, 1000, \ |
1841 develop(uintx, CMSCheckInterval, 1000, \ |
1819 "Interval in milliseconds that CMS thread checks if it " \ |
1842 "Interval in milliseconds that CMS thread checks if it " \ |
1820 "should start a collection cycle") \ |
1843 "should start a collection cycle") \ |
1821 \ |
1844 \ |
1822 product(bool, CMSYield, true, \ |
1845 product(bool, CMSYield, true, \ |
1823 "Yield between steps of concurrent mark & sweep") \ |
1846 "Yield between steps of CMS") \ |
1824 \ |
1847 \ |
1825 product(uintx, CMSBitMapYieldQuantum, 10*M, \ |
1848 product(uintx, CMSBitMapYieldQuantum, 10*M, \ |
1826 "Bitmap operations should process at most this many bits" \ |
1849 "Bitmap operations should process at most this many bits " \ |
1827 "between yields") \ |
1850 "between yields") \ |
1828 \ |
1851 \ |
1829 product(bool, CMSDumpAtPromotionFailure, false, \ |
1852 product(bool, CMSDumpAtPromotionFailure, false, \ |
1830 "Dump useful information about the state of the CMS old " \ |
1853 "Dump useful information about the state of the CMS old " \ |
1831 " generation upon a promotion failure.") \ |
1854 "generation upon a promotion failure") \ |
1832 \ |
1855 \ |
1833 product(bool, CMSPrintChunksInDump, false, \ |
1856 product(bool, CMSPrintChunksInDump, false, \ |
1834 "In a dump enabled by CMSDumpAtPromotionFailure, include " \ |
1857 "In a dump enabled by CMSDumpAtPromotionFailure, include " \ |
1835 " more detailed information about the free chunks.") \ |
1858 "more detailed information about the free chunks") \ |
1836 \ |
1859 \ |
1837 product(bool, CMSPrintObjectsInDump, false, \ |
1860 product(bool, CMSPrintObjectsInDump, false, \ |
1838 "In a dump enabled by CMSDumpAtPromotionFailure, include " \ |
1861 "In a dump enabled by CMSDumpAtPromotionFailure, include " \ |
1839 " more detailed information about the allocated objects.") \ |
1862 "more detailed information about the allocated objects") \ |
1840 \ |
1863 \ |
1841 diagnostic(bool, FLSVerifyAllHeapReferences, false, \ |
1864 diagnostic(bool, FLSVerifyAllHeapReferences, false, \ |
1842 "Verify that all refs across the FLS boundary " \ |
1865 "Verify that all references across the FLS boundary " \ |
1843 " are to valid objects") \ |
1866 "are to valid objects") \ |
1844 \ |
1867 \ |
1845 diagnostic(bool, FLSVerifyLists, false, \ |
1868 diagnostic(bool, FLSVerifyLists, false, \ |
1846 "Do lots of (expensive) FreeListSpace verification") \ |
1869 "Do lots of (expensive) FreeListSpace verification") \ |
1847 \ |
1870 \ |
1848 diagnostic(bool, FLSVerifyIndexTable, false, \ |
1871 diagnostic(bool, FLSVerifyIndexTable, false, \ |
2203 diagnostic(bool, GCParallelVerificationEnabled, true, \ |
2229 diagnostic(bool, GCParallelVerificationEnabled, true, \ |
2204 "Enable parallel memory system verification") \ |
2230 "Enable parallel memory system verification") \ |
2205 \ |
2231 \ |
2206 diagnostic(bool, DeferInitialCardMark, false, \ |
2232 diagnostic(bool, DeferInitialCardMark, false, \ |
2207 "When +ReduceInitialCardMarks, explicitly defer any that " \ |
2233 "When +ReduceInitialCardMarks, explicitly defer any that " \ |
2208 "may arise from new_pre_store_barrier") \ |
2234 "may arise from new_pre_store_barrier") \ |
2209 \ |
2235 \ |
2210 diagnostic(bool, VerifyRememberedSets, false, \ |
2236 diagnostic(bool, VerifyRememberedSets, false, \ |
2211 "Verify GC remembered sets") \ |
2237 "Verify GC remembered sets") \ |
2212 \ |
2238 \ |
2213 diagnostic(bool, VerifyObjectStartArray, true, \ |
2239 diagnostic(bool, VerifyObjectStartArray, true, \ |
2214 "Verify GC object start array if verify before/after") \ |
2240 "Verify GC object start array if verify before/after") \ |
2215 \ |
2241 \ |
2216 product(bool, DisableExplicitGC, false, \ |
2242 product(bool, DisableExplicitGC, false, \ |
2217 "Tells whether calling System.gc() does a full GC") \ |
2243 "Ignore calls to System.gc()") \ |
2218 \ |
2244 \ |
2219 notproduct(bool, CheckMemoryInitialization, false, \ |
2245 notproduct(bool, CheckMemoryInitialization, false, \ |
2220 "Checks memory initialization") \ |
2246 "Check memory initialization") \ |
2221 \ |
2247 \ |
2222 product(bool, CollectGen0First, false, \ |
2248 product(bool, CollectGen0First, false, \ |
2223 "Collect youngest generation before each full GC") \ |
2249 "Collect youngest generation before each full GC") \ |
2224 \ |
2250 \ |
2225 diagnostic(bool, BindCMSThreadToCPU, false, \ |
2251 diagnostic(bool, BindCMSThreadToCPU, false, \ |
2236 \ |
2262 \ |
2237 product(uintx, ProcessDistributionStride, 4, \ |
2263 product(uintx, ProcessDistributionStride, 4, \ |
2238 "Stride through processors when distributing processes") \ |
2264 "Stride through processors when distributing processes") \ |
2239 \ |
2265 \ |
2240 product(uintx, CMSCoordinatorYieldSleepCount, 10, \ |
2266 product(uintx, CMSCoordinatorYieldSleepCount, 10, \ |
2241 "number of times the coordinator GC thread will sleep while " \ |
2267 "Number of times the coordinator GC thread will sleep while " \ |
2242 "yielding before giving up and resuming GC") \ |
2268 "yielding before giving up and resuming GC") \ |
2243 \ |
2269 \ |
2244 product(uintx, CMSYieldSleepCount, 0, \ |
2270 product(uintx, CMSYieldSleepCount, 0, \ |
2245 "number of times a GC thread (minus the coordinator) " \ |
2271 "Number of times a GC thread (minus the coordinator) " \ |
2246 "will sleep while yielding before giving up and resuming GC") \ |
2272 "will sleep while yielding before giving up and resuming GC") \ |
2247 \ |
2273 \ |
2248 /* gc tracing */ \ |
2274 /* gc tracing */ \ |
2249 manageable(bool, PrintGC, false, \ |
2275 manageable(bool, PrintGC, false, \ |
2250 "Print message at garbage collect") \ |
2276 "Print message at garbage collection") \ |
2251 \ |
2277 \ |
2252 manageable(bool, PrintGCDetails, false, \ |
2278 manageable(bool, PrintGCDetails, false, \ |
2253 "Print more details at garbage collect") \ |
2279 "Print more details at garbage collection") \ |
2254 \ |
2280 \ |
2255 manageable(bool, PrintGCDateStamps, false, \ |
2281 manageable(bool, PrintGCDateStamps, false, \ |
2256 "Print date stamps at garbage collect") \ |
2282 "Print date stamps at garbage collection") \ |
2257 \ |
2283 \ |
2258 manageable(bool, PrintGCTimeStamps, false, \ |
2284 manageable(bool, PrintGCTimeStamps, false, \ |
2259 "Print timestamps at garbage collect") \ |
2285 "Print timestamps at garbage collection") \ |
2260 \ |
2286 \ |
2261 product(bool, PrintGCTaskTimeStamps, false, \ |
2287 product(bool, PrintGCTaskTimeStamps, false, \ |
2262 "Print timestamps for individual gc worker thread tasks") \ |
2288 "Print timestamps for individual gc worker thread tasks") \ |
2263 \ |
2289 \ |
2264 develop(intx, ConcGCYieldTimeout, 0, \ |
2290 develop(intx, ConcGCYieldTimeout, 0, \ |
2265 "If non-zero, assert that GC threads yield within this # of ms.") \ |
2291 "If non-zero, assert that GC threads yield within this " \ |
|
2292 "number of milliseconds") \ |
2266 \ |
2293 \ |
2267 notproduct(bool, TraceMarkSweep, false, \ |
2294 notproduct(bool, TraceMarkSweep, false, \ |
2268 "Trace mark sweep") \ |
2295 "Trace mark sweep") \ |
2269 \ |
2296 \ |
2270 product(bool, PrintReferenceGC, false, \ |
2297 product(bool, PrintReferenceGC, false, \ |
2271 "Print times spent handling reference objects during GC " \ |
2298 "Print times spent handling reference objects during GC " \ |
2272 " (enabled only when PrintGCDetails)") \ |
2299 "(enabled only when PrintGCDetails)") \ |
2273 \ |
2300 \ |
2274 develop(bool, TraceReferenceGC, false, \ |
2301 develop(bool, TraceReferenceGC, false, \ |
2275 "Trace handling of soft/weak/final/phantom references") \ |
2302 "Trace handling of soft/weak/final/phantom references") \ |
2276 \ |
2303 \ |
2277 develop(bool, TraceFinalizerRegistration, false, \ |
2304 develop(bool, TraceFinalizerRegistration, false, \ |
2278 "Trace registration of final references") \ |
2305 "Trace registration of final references") \ |
2279 \ |
2306 \ |
2280 notproduct(bool, TraceScavenge, false, \ |
2307 notproduct(bool, TraceScavenge, false, \ |
2281 "Trace scavenge") \ |
2308 "Trace scavenge") \ |
2282 \ |
2309 \ |
2283 product_rw(bool, TraceClassLoading, false, \ |
2310 product_rw(bool, TraceClassLoading, false, \ |
2347 \ |
2374 \ |
2348 diagnostic(bool, TraceGCTaskThread, false, \ |
2375 diagnostic(bool, TraceGCTaskThread, false, \ |
2349 "Trace actions of the GC task threads") \ |
2376 "Trace actions of the GC task threads") \ |
2350 \ |
2377 \ |
2351 product(bool, PrintParallelOldGCPhaseTimes, false, \ |
2378 product(bool, PrintParallelOldGCPhaseTimes, false, \ |
2352 "Print the time taken by each parallel old gc phase." \ |
2379 "Print the time taken by each phase in ParallelOldGC " \ |
2353 "PrintGCDetails must also be enabled.") \ |
2380 "(PrintGCDetails must also be enabled)") \ |
2354 \ |
2381 \ |
2355 develop(bool, TraceParallelOldGCMarkingPhase, false, \ |
2382 develop(bool, TraceParallelOldGCMarkingPhase, false, \ |
2356 "Trace parallel old gc marking phase") \ |
2383 "Trace marking phase in ParallelOldGC") \ |
2357 \ |
2384 \ |
2358 develop(bool, TraceParallelOldGCSummaryPhase, false, \ |
2385 develop(bool, TraceParallelOldGCSummaryPhase, false, \ |
2359 "Trace parallel old gc summary phase") \ |
2386 "Trace summary phase in ParallelOldGC") \ |
2360 \ |
2387 \ |
2361 develop(bool, TraceParallelOldGCCompactionPhase, false, \ |
2388 develop(bool, TraceParallelOldGCCompactionPhase, false, \ |
2362 "Trace parallel old gc compaction phase") \ |
2389 "Trace compaction phase in ParallelOldGC") \ |
2363 \ |
2390 \ |
2364 develop(bool, TraceParallelOldGCDensePrefix, false, \ |
2391 develop(bool, TraceParallelOldGCDensePrefix, false, \ |
2365 "Trace parallel old gc dense prefix computation") \ |
2392 "Trace dense prefix computation for ParallelOldGC") \ |
2366 \ |
2393 \ |
2367 develop(bool, IgnoreLibthreadGPFault, false, \ |
2394 develop(bool, IgnoreLibthreadGPFault, false, \ |
2368 "Suppress workaround for libthread GP fault") \ |
2395 "Suppress workaround for libthread GP fault") \ |
2369 \ |
2396 \ |
2370 product(bool, PrintJNIGCStalls, false, \ |
2397 product(bool, PrintJNIGCStalls, false, \ |
2371 "Print diagnostic message when GC is stalled" \ |
2398 "Print diagnostic message when GC is stalled " \ |
2372 "by JNI critical section") \ |
2399 "by JNI critical section") \ |
2373 \ |
2400 \ |
2374 experimental(double, ObjectCountCutOffPercent, 0.5, \ |
2401 experimental(double, ObjectCountCutOffPercent, 0.5, \ |
2375 "The percentage of the used heap that the instances of a class " \ |
2402 "The percentage of the used heap that the instances of a class " \ |
2376 "must occupy for the class to generate a trace event.") \ |
2403 "must occupy for the class to generate a trace event") \ |
2377 \ |
2404 \ |
2378 /* GC log rotation setting */ \ |
2405 /* GC log rotation setting */ \ |
2379 \ |
2406 \ |
2380 product(bool, UseGCLogFileRotation, false, \ |
2407 product(bool, UseGCLogFileRotation, false, \ |
2381 "Prevent large gclog file for long running app. " \ |
2408 "Rotate gclog files (for long running applications). It requires "\ |
2382 "Requires -Xloggc:<filename>") \ |
2409 "-Xloggc:<filename>") \ |
2383 \ |
2410 \ |
2384 product(uintx, NumberOfGCLogFiles, 0, \ |
2411 product(uintx, NumberOfGCLogFiles, 0, \ |
2385 "Number of gclog files in rotation, " \ |
2412 "Number of gclog files in rotation " \ |
2386 "Default: 0, no rotation") \ |
2413 "(default: 0, no rotation)") \ |
2387 \ |
2414 \ |
2388 product(uintx, GCLogFileSize, 0, \ |
2415 product(uintx, GCLogFileSize, 0, \ |
2389 "GC log file size, Default: 0 bytes, no rotation " \ |
2416 "GC log file size (default: 0 bytes, no rotation). " \ |
2390 "Only valid with UseGCLogFileRotation") \ |
2417 "It requires UseGCLogFileRotation") \ |
2391 \ |
2418 \ |
2392 /* JVMTI heap profiling */ \ |
2419 /* JVMTI heap profiling */ \ |
2393 \ |
2420 \ |
2394 diagnostic(bool, TraceJVMTIObjectTagging, false, \ |
2421 diagnostic(bool, TraceJVMTIObjectTagging, false, \ |
2395 "Trace JVMTI object tagging calls") \ |
2422 "Trace JVMTI object tagging calls") \ |
2462 \ |
2489 \ |
2463 develop(bool, GenerateRangeChecks, true, \ |
2490 develop(bool, GenerateRangeChecks, true, \ |
2464 "Generate range checks for array accesses") \ |
2491 "Generate range checks for array accesses") \ |
2465 \ |
2492 \ |
2466 develop_pd(bool, ImplicitNullChecks, \ |
2493 develop_pd(bool, ImplicitNullChecks, \ |
2467 "generate code for implicit null checks") \ |
2494 "Generate code for implicit null checks") \ |
2468 \ |
2495 \ |
2469 product(bool, PrintSafepointStatistics, false, \ |
2496 product(bool, PrintSafepointStatistics, false, \ |
2470 "print statistics about safepoint synchronization") \ |
2497 "Print statistics about safepoint synchronization") \ |
2471 \ |
2498 \ |
2472 product(intx, PrintSafepointStatisticsCount, 300, \ |
2499 product(intx, PrintSafepointStatisticsCount, 300, \ |
2473 "total number of safepoint statistics collected " \ |
2500 "Total number of safepoint statistics collected " \ |
2474 "before printing them out") \ |
2501 "before printing them out") \ |
2475 \ |
2502 \ |
2476 product(intx, PrintSafepointStatisticsTimeout, -1, \ |
2503 product(intx, PrintSafepointStatisticsTimeout, -1, \ |
2477 "print safepoint statistics only when safepoint takes" \ |
2504 "Print safepoint statistics only when safepoint takes " \ |
2478 " more than PrintSafepointSatisticsTimeout in millis") \ |
2505 "more than PrintSafepointSatisticsTimeout in millis") \ |
2479 \ |
2506 \ |
2480 product(bool, TraceSafepointCleanupTime, false, \ |
2507 product(bool, TraceSafepointCleanupTime, false, \ |
2481 "print the break down of clean up tasks performed during" \ |
2508 "Print the break down of clean up tasks performed during " \ |
2482 " safepoint") \ |
2509 "safepoint") \ |
2483 \ |
2510 \ |
2484 product(bool, Inline, true, \ |
2511 product(bool, Inline, true, \ |
2485 "enable inlining") \ |
2512 "Enable inlining") \ |
2486 \ |
2513 \ |
2487 product(bool, ClipInlining, true, \ |
2514 product(bool, ClipInlining, true, \ |
2488 "clip inlining if aggregate method exceeds DesiredMethodLimit") \ |
2515 "Clip inlining if aggregate method exceeds DesiredMethodLimit") \ |
2489 \ |
2516 \ |
2490 develop(bool, UseCHA, true, \ |
2517 develop(bool, UseCHA, true, \ |
2491 "enable CHA") \ |
2518 "Enable CHA") \ |
2492 \ |
2519 \ |
2493 product(bool, UseTypeProfile, true, \ |
2520 product(bool, UseTypeProfile, true, \ |
2494 "Check interpreter profile for historically monomorphic calls") \ |
2521 "Check interpreter profile for historically monomorphic calls") \ |
2495 \ |
2522 \ |
2496 notproduct(bool, TimeCompiler, false, \ |
2523 notproduct(bool, TimeCompiler, false, \ |
2497 "time the compiler") \ |
2524 "Time the compiler") \ |
2498 \ |
2525 \ |
2499 diagnostic(bool, PrintInlining, false, \ |
2526 diagnostic(bool, PrintInlining, false, \ |
2500 "prints inlining optimizations") \ |
2527 "Print inlining optimizations") \ |
2501 \ |
2528 \ |
2502 product(bool, UsePopCountInstruction, false, \ |
2529 product(bool, UsePopCountInstruction, false, \ |
2503 "Use population count instruction") \ |
2530 "Use population count instruction") \ |
2504 \ |
2531 \ |
2505 develop(bool, EagerInitialization, false, \ |
2532 develop(bool, EagerInitialization, false, \ |
2507 \ |
2534 \ |
2508 develop(bool, TraceMethodReplacement, false, \ |
2535 develop(bool, TraceMethodReplacement, false, \ |
2509 "Print when methods are replaced do to recompilation") \ |
2536 "Print when methods are replaced do to recompilation") \ |
2510 \ |
2537 \ |
2511 develop(bool, PrintMethodFlushing, false, \ |
2538 develop(bool, PrintMethodFlushing, false, \ |
2512 "print the nmethods being flushed") \ |
2539 "Print the nmethods being flushed") \ |
2513 \ |
2540 \ |
2514 develop(bool, UseRelocIndex, false, \ |
2541 develop(bool, UseRelocIndex, false, \ |
2515 "use an index to speed random access to relocations") \ |
2542 "Use an index to speed random access to relocations") \ |
2516 \ |
2543 \ |
2517 develop(bool, StressCodeBuffers, false, \ |
2544 develop(bool, StressCodeBuffers, false, \ |
2518 "Exercise code buffer expansion and other rare state changes") \ |
2545 "Exercise code buffer expansion and other rare state changes") \ |
2519 \ |
2546 \ |
2520 diagnostic(bool, DebugNonSafepoints, trueInDebug, \ |
2547 diagnostic(bool, DebugNonSafepoints, trueInDebug, \ |
2521 "Generate extra debugging info for non-safepoints in nmethods") \ |
2548 "Generate extra debugging information for non-safepoints in " \ |
|
2549 "nmethods") \ |
2522 \ |
2550 \ |
2523 product(bool, PrintVMOptions, false, \ |
2551 product(bool, PrintVMOptions, false, \ |
2524 "Print flags that appeared on the command line") \ |
2552 "Print flags that appeared on the command line") \ |
2525 \ |
2553 \ |
2526 product(bool, IgnoreUnrecognizedVMOptions, false, \ |
2554 product(bool, IgnoreUnrecognizedVMOptions, false, \ |
2527 "Ignore unrecognized VM options") \ |
2555 "Ignore unrecognized VM options") \ |
2528 \ |
2556 \ |
2529 product(bool, PrintCommandLineFlags, false, \ |
2557 product(bool, PrintCommandLineFlags, false, \ |
2530 "Print flags specified on command line or set by ergonomics") \ |
2558 "Print flags specified on command line or set by ergonomics") \ |
2531 \ |
2559 \ |
2532 product(bool, PrintFlagsInitial, false, \ |
2560 product(bool, PrintFlagsInitial, false, \ |
2533 "Print all VM flags before argument processing and exit VM") \ |
2561 "Print all VM flags before argument processing and exit VM") \ |
2534 \ |
2562 \ |
2535 product(bool, PrintFlagsFinal, false, \ |
2563 product(bool, PrintFlagsFinal, false, \ |
2536 "Print all VM flags after argument and ergonomic processing") \ |
2564 "Print all VM flags after argument and ergonomic processing") \ |
2537 \ |
2565 \ |
2538 notproduct(bool, PrintFlagsWithComments, false, \ |
2566 notproduct(bool, PrintFlagsWithComments, false, \ |
2539 "Print all VM flags with default values and descriptions and exit")\ |
2567 "Print all VM flags with default values and descriptions and " \ |
|
2568 "exit") \ |
2540 \ |
2569 \ |
2541 diagnostic(bool, SerializeVMOutput, true, \ |
2570 diagnostic(bool, SerializeVMOutput, true, \ |
2542 "Use a mutex to serialize output to tty and LogFile") \ |
2571 "Use a mutex to serialize output to tty and LogFile") \ |
2543 \ |
2572 \ |
2544 diagnostic(bool, DisplayVMOutput, true, \ |
2573 diagnostic(bool, DisplayVMOutput, true, \ |
2545 "Display all VM output on the tty, independently of LogVMOutput") \ |
2574 "Display all VM output on the tty, independently of LogVMOutput") \ |
2546 \ |
2575 \ |
2547 diagnostic(bool, LogVMOutput, false, \ |
2576 diagnostic(bool, LogVMOutput, false, \ |
2548 "Save VM output to LogFile") \ |
2577 "Save VM output to LogFile") \ |
2549 \ |
2578 \ |
2550 diagnostic(ccstr, LogFile, NULL, \ |
2579 diagnostic(ccstr, LogFile, NULL, \ |
2551 "If LogVMOutput or LogCompilation is on, save VM output to " \ |
2580 "If LogVMOutput or LogCompilation is on, save VM output to " \ |
2552 "this file [default: ./hotspot_pid%p.log] (%p replaced with pid)") \ |
2581 "this file [default: ./hotspot_pid%p.log] (%p replaced with pid)")\ |
2553 \ |
2582 \ |
2554 product(ccstr, ErrorFile, NULL, \ |
2583 product(ccstr, ErrorFile, NULL, \ |
2555 "If an error occurs, save the error data to this file " \ |
2584 "If an error occurs, save the error data to this file " \ |
2556 "[default: ./hs_err_pid%p.log] (%p replaced with pid)") \ |
2585 "[default: ./hs_err_pid%p.log] (%p replaced with pid)") \ |
2557 \ |
2586 \ |
2558 product(bool, DisplayVMOutputToStderr, false, \ |
2587 product(bool, DisplayVMOutputToStderr, false, \ |
2559 "If DisplayVMOutput is true, display all VM output to stderr") \ |
2588 "If DisplayVMOutput is true, display all VM output to stderr") \ |
2560 \ |
2589 \ |
2561 product(bool, DisplayVMOutputToStdout, false, \ |
2590 product(bool, DisplayVMOutputToStdout, false, \ |
2562 "If DisplayVMOutput is true, display all VM output to stdout") \ |
2591 "If DisplayVMOutput is true, display all VM output to stdout") \ |
2563 \ |
2592 \ |
2564 product(bool, UseHeavyMonitors, false, \ |
2593 product(bool, UseHeavyMonitors, false, \ |
2565 "use heavyweight instead of lightweight Java monitors") \ |
2594 "use heavyweight instead of lightweight Java monitors") \ |
2566 \ |
2595 \ |
2567 product(bool, PrintStringTableStatistics, false, \ |
2596 product(bool, PrintStringTableStatistics, false, \ |
2648 product(bool, AggressiveOpts, false, \ |
2677 product(bool, AggressiveOpts, false, \ |
2649 "Enable aggressive optimizations - see arguments.cpp") \ |
2678 "Enable aggressive optimizations - see arguments.cpp") \ |
2650 \ |
2679 \ |
2651 /* statistics */ \ |
2680 /* statistics */ \ |
2652 develop(bool, CountCompiledCalls, false, \ |
2681 develop(bool, CountCompiledCalls, false, \ |
2653 "counts method invocations") \ |
2682 "Count method invocations") \ |
2654 \ |
2683 \ |
2655 notproduct(bool, CountRuntimeCalls, false, \ |
2684 notproduct(bool, CountRuntimeCalls, false, \ |
2656 "counts VM runtime calls") \ |
2685 "Count VM runtime calls") \ |
2657 \ |
2686 \ |
2658 develop(bool, CountJNICalls, false, \ |
2687 develop(bool, CountJNICalls, false, \ |
2659 "counts jni method invocations") \ |
2688 "Count jni method invocations") \ |
2660 \ |
2689 \ |
2661 notproduct(bool, CountJVMCalls, false, \ |
2690 notproduct(bool, CountJVMCalls, false, \ |
2662 "counts jvm method invocations") \ |
2691 "Count jvm method invocations") \ |
2663 \ |
2692 \ |
2664 notproduct(bool, CountRemovableExceptions, false, \ |
2693 notproduct(bool, CountRemovableExceptions, false, \ |
2665 "count exceptions that could be replaced by branches due to " \ |
2694 "Count exceptions that could be replaced by branches due to " \ |
2666 "inlining") \ |
2695 "inlining") \ |
2667 \ |
2696 \ |
2668 notproduct(bool, ICMissHistogram, false, \ |
2697 notproduct(bool, ICMissHistogram, false, \ |
2669 "produce histogram of IC misses") \ |
2698 "Produce histogram of IC misses") \ |
2670 \ |
2699 \ |
2671 notproduct(bool, PrintClassStatistics, false, \ |
2700 notproduct(bool, PrintClassStatistics, false, \ |
2672 "prints class statistics at end of run") \ |
2701 "Print class statistics at end of run") \ |
2673 \ |
2702 \ |
2674 notproduct(bool, PrintMethodStatistics, false, \ |
2703 notproduct(bool, PrintMethodStatistics, false, \ |
2675 "prints method statistics at end of run") \ |
2704 "Print method statistics at end of run") \ |
2676 \ |
2705 \ |
2677 /* interpreter */ \ |
2706 /* interpreter */ \ |
2678 develop(bool, ClearInterpreterLocals, false, \ |
2707 develop(bool, ClearInterpreterLocals, false, \ |
2679 "Always clear local variables of interpreter activations upon " \ |
2708 "Always clear local variables of interpreter activations upon " \ |
2680 "entry") \ |
2709 "entry") \ |
2751 \ |
2780 \ |
2752 develop(bool, TraceFrequencyInlining, false, \ |
2781 develop(bool, TraceFrequencyInlining, false, \ |
2753 "Trace frequency based inlining") \ |
2782 "Trace frequency based inlining") \ |
2754 \ |
2783 \ |
2755 develop_pd(bool, InlineIntrinsics, \ |
2784 develop_pd(bool, InlineIntrinsics, \ |
2756 "Inline intrinsics that can be statically resolved") \ |
2785 "Inline intrinsics that can be statically resolved") \ |
2757 \ |
2786 \ |
2758 product_pd(bool, ProfileInterpreter, \ |
2787 product_pd(bool, ProfileInterpreter, \ |
2759 "Profile at the bytecode level during interpretation") \ |
2788 "Profile at the bytecode level during interpretation") \ |
2760 \ |
2789 \ |
2761 develop_pd(bool, ProfileTraps, \ |
2790 develop_pd(bool, ProfileTraps, \ |
2762 "Profile deoptimization traps at the bytecode level") \ |
2791 "Profile deoptimization traps at the bytecode level") \ |
2763 \ |
2792 \ |
2764 product(intx, ProfileMaturityPercentage, 20, \ |
2793 product(intx, ProfileMaturityPercentage, 20, \ |
2765 "number of method invocations/branches (expressed as % of " \ |
2794 "number of method invocations/branches (expressed as % of " \ |
2766 "CompileThreshold) before using the method's profile") \ |
2795 "CompileThreshold) before using the method's profile") \ |
2767 \ |
2796 \ |
2768 develop(bool, PrintMethodData, false, \ |
2797 develop(bool, PrintMethodData, false, \ |
2769 "Print the results of +ProfileInterpreter at end of run") \ |
2798 "Print the results of +ProfileInterpreter at end of run") \ |
2770 \ |
2799 \ |
2771 develop(bool, VerifyDataPointer, trueInDebug, \ |
2800 develop(bool, VerifyDataPointer, trueInDebug, \ |
2772 "Verify the method data pointer during interpreter profiling") \ |
2801 "Verify the method data pointer during interpreter profiling") \ |
2773 \ |
2802 \ |
2774 develop(bool, VerifyCompiledCode, false, \ |
2803 develop(bool, VerifyCompiledCode, false, \ |
2779 "Manually make GC thread crash then dump java stack trace; " \ |
2808 "Manually make GC thread crash then dump java stack trace; " \ |
2780 "Test only") \ |
2809 "Test only") \ |
2781 \ |
2810 \ |
2782 /* compilation */ \ |
2811 /* compilation */ \ |
2783 product(bool, UseCompiler, true, \ |
2812 product(bool, UseCompiler, true, \ |
2784 "use compilation") \ |
2813 "Use Just-In-Time compilation") \ |
2785 \ |
2814 \ |
2786 develop(bool, TraceCompilationPolicy, false, \ |
2815 develop(bool, TraceCompilationPolicy, false, \ |
2787 "Trace compilation policy") \ |
2816 "Trace compilation policy") \ |
2788 \ |
2817 \ |
2789 develop(bool, TimeCompilationPolicy, false, \ |
2818 develop(bool, TimeCompilationPolicy, false, \ |
2790 "Time the compilation policy") \ |
2819 "Time the compilation policy") \ |
2791 \ |
2820 \ |
2792 product(bool, UseCounterDecay, true, \ |
2821 product(bool, UseCounterDecay, true, \ |
2793 "adjust recompilation counters") \ |
2822 "Adjust recompilation counters") \ |
2794 \ |
2823 \ |
2795 develop(intx, CounterHalfLifeTime, 30, \ |
2824 develop(intx, CounterHalfLifeTime, 30, \ |
2796 "half-life time of invocation counters (in secs)") \ |
2825 "Half-life time of invocation counters (in seconds)") \ |
2797 \ |
2826 \ |
2798 develop(intx, CounterDecayMinIntervalLength, 500, \ |
2827 develop(intx, CounterDecayMinIntervalLength, 500, \ |
2799 "Min. ms. between invocation of CounterDecay") \ |
2828 "The minimum interval (in milliseconds) between invocation of " \ |
|
2829 "CounterDecay") \ |
2800 \ |
2830 \ |
2801 product(bool, AlwaysCompileLoopMethods, false, \ |
2831 product(bool, AlwaysCompileLoopMethods, false, \ |
2802 "when using recompilation, never interpret methods " \ |
2832 "When using recompilation, never interpret methods " \ |
2803 "containing loops") \ |
2833 "containing loops") \ |
2804 \ |
2834 \ |
2805 product(bool, DontCompileHugeMethods, true, \ |
2835 product(bool, DontCompileHugeMethods, true, \ |
2806 "don't compile methods > HugeMethodLimit") \ |
2836 "Do not compile methods > HugeMethodLimit") \ |
2807 \ |
2837 \ |
2808 /* Bytecode escape analysis estimation. */ \ |
2838 /* Bytecode escape analysis estimation. */ \ |
2809 product(bool, EstimateArgEscape, true, \ |
2839 product(bool, EstimateArgEscape, true, \ |
2810 "Analyze bytecodes to estimate escape state of arguments") \ |
2840 "Analyze bytecodes to estimate escape state of arguments") \ |
2811 \ |
2841 \ |
2812 product(intx, BCEATraceLevel, 0, \ |
2842 product(intx, BCEATraceLevel, 0, \ |
2813 "How much tracing to do of bytecode escape analysis estimates") \ |
2843 "How much tracing to do of bytecode escape analysis estimates") \ |
2814 \ |
2844 \ |
2815 product(intx, MaxBCEAEstimateLevel, 5, \ |
2845 product(intx, MaxBCEAEstimateLevel, 5, \ |
2816 "Maximum number of nested calls that are analyzed by BC EA.") \ |
2846 "Maximum number of nested calls that are analyzed by BC EA") \ |
2817 \ |
2847 \ |
2818 product(intx, MaxBCEAEstimateSize, 150, \ |
2848 product(intx, MaxBCEAEstimateSize, 150, \ |
2819 "Maximum bytecode size of a method to be analyzed by BC EA.") \ |
2849 "Maximum bytecode size of a method to be analyzed by BC EA") \ |
2820 \ |
2850 \ |
2821 product(intx, AllocatePrefetchStyle, 1, \ |
2851 product(intx, AllocatePrefetchStyle, 1, \ |
2822 "0 = no prefetch, " \ |
2852 "0 = no prefetch, " \ |
2823 "1 = prefetch instructions for each allocation, " \ |
2853 "1 = prefetch instructions for each allocation, " \ |
2824 "2 = use TLAB watermark to gate allocation prefetch, " \ |
2854 "2 = use TLAB watermark to gate allocation prefetch, " \ |
2920 product_pd(intx, InlineSmallCode, \ |
2951 product_pd(intx, InlineSmallCode, \ |
2921 "Only inline already compiled methods if their code size is " \ |
2952 "Only inline already compiled methods if their code size is " \ |
2922 "less than this") \ |
2953 "less than this") \ |
2923 \ |
2954 \ |
2924 product(intx, MaxInlineSize, 35, \ |
2955 product(intx, MaxInlineSize, 35, \ |
2925 "maximum bytecode size of a method to be inlined") \ |
2956 "The maximum bytecode size of a method to be inlined") \ |
2926 \ |
2957 \ |
2927 product_pd(intx, FreqInlineSize, \ |
2958 product_pd(intx, FreqInlineSize, \ |
2928 "maximum bytecode size of a frequent method to be inlined") \ |
2959 "The maximum bytecode size of a frequent method to be inlined") \ |
2929 \ |
2960 \ |
2930 product(intx, MaxTrivialSize, 6, \ |
2961 product(intx, MaxTrivialSize, 6, \ |
2931 "maximum bytecode size of a trivial method to be inlined") \ |
2962 "The maximum bytecode size of a trivial method to be inlined") \ |
2932 \ |
2963 \ |
2933 product(intx, MinInliningThreshold, 250, \ |
2964 product(intx, MinInliningThreshold, 250, \ |
2934 "min. invocation count a method needs to have to be inlined") \ |
2965 "The minimum invocation count a method needs to have to be " \ |
|
2966 "inlined") \ |
2935 \ |
2967 \ |
2936 develop(intx, MethodHistogramCutoff, 100, \ |
2968 develop(intx, MethodHistogramCutoff, 100, \ |
2937 "cutoff value for method invoc. histogram (+CountCalls)") \ |
2969 "The cutoff value for method invocation histogram (+CountCalls)") \ |
2938 \ |
2970 \ |
2939 develop(intx, ProfilerNumberOfInterpretedMethods, 25, \ |
2971 develop(intx, ProfilerNumberOfInterpretedMethods, 25, \ |
2940 "# of interpreted methods to show in profile") \ |
2972 "Number of interpreted methods to show in profile") \ |
2941 \ |
2973 \ |
2942 develop(intx, ProfilerNumberOfCompiledMethods, 25, \ |
2974 develop(intx, ProfilerNumberOfCompiledMethods, 25, \ |
2943 "# of compiled methods to show in profile") \ |
2975 "Number of compiled methods to show in profile") \ |
2944 \ |
2976 \ |
2945 develop(intx, ProfilerNumberOfStubMethods, 25, \ |
2977 develop(intx, ProfilerNumberOfStubMethods, 25, \ |
2946 "# of stub methods to show in profile") \ |
2978 "Number of stub methods to show in profile") \ |
2947 \ |
2979 \ |
2948 develop(intx, ProfilerNumberOfRuntimeStubNodes, 25, \ |
2980 develop(intx, ProfilerNumberOfRuntimeStubNodes, 25, \ |
2949 "# of runtime stub nodes to show in profile") \ |
2981 "Number of runtime stub nodes to show in profile") \ |
2950 \ |
2982 \ |
2951 product(intx, ProfileIntervalsTicks, 100, \ |
2983 product(intx, ProfileIntervalsTicks, 100, \ |
2952 "# of ticks between printing of interval profile " \ |
2984 "Number of ticks between printing of interval profile " \ |
2953 "(+ProfileIntervals)") \ |
2985 "(+ProfileIntervals)") \ |
2954 \ |
2986 \ |
2955 notproduct(intx, ScavengeALotInterval, 1, \ |
2987 notproduct(intx, ScavengeALotInterval, 1, \ |
2956 "Interval between which scavenge will occur with +ScavengeALot") \ |
2988 "Interval between which scavenge will occur with +ScavengeALot") \ |
2957 \ |
2989 \ |
2983 \ |
3015 \ |
2984 develop(bool, StressNonEntrant, false, \ |
3016 develop(bool, StressNonEntrant, false, \ |
2985 "Mark nmethods non-entrant at registration") \ |
3017 "Mark nmethods non-entrant at registration") \ |
2986 \ |
3018 \ |
2987 diagnostic(intx, MallocVerifyInterval, 0, \ |
3019 diagnostic(intx, MallocVerifyInterval, 0, \ |
2988 "if non-zero, verify C heap after every N calls to " \ |
3020 "If non-zero, verify C heap after every N calls to " \ |
2989 "malloc/realloc/free") \ |
3021 "malloc/realloc/free") \ |
2990 \ |
3022 \ |
2991 diagnostic(intx, MallocVerifyStart, 0, \ |
3023 diagnostic(intx, MallocVerifyStart, 0, \ |
2992 "if non-zero, start verifying C heap after Nth call to " \ |
3024 "If non-zero, start verifying C heap after Nth call to " \ |
2993 "malloc/realloc/free") \ |
3025 "malloc/realloc/free") \ |
2994 \ |
3026 \ |
2995 diagnostic(uintx, MallocMaxTestWords, 0, \ |
3027 diagnostic(uintx, MallocMaxTestWords, 0, \ |
2996 "if non-zero, max # of Words that malloc/realloc can allocate " \ |
3028 "If non-zero, maximum number of words that malloc/realloc can " \ |
2997 "(for testing only)") \ |
3029 "allocate (for testing only)") \ |
2998 \ |
3030 \ |
2999 product(intx, TypeProfileWidth, 2, \ |
3031 product(intx, TypeProfileWidth, 2, \ |
3000 "number of receiver types to record in call/cast profile") \ |
3032 "Number of receiver types to record in call/cast profile") \ |
3001 \ |
3033 \ |
3002 develop(intx, BciProfileWidth, 2, \ |
3034 develop(intx, BciProfileWidth, 2, \ |
3003 "number of return bci's to record in ret profile") \ |
3035 "Number of return bci's to record in ret profile") \ |
3004 \ |
3036 \ |
3005 product(intx, PerMethodRecompilationCutoff, 400, \ |
3037 product(intx, PerMethodRecompilationCutoff, 400, \ |
3006 "After recompiling N times, stay in the interpreter (-1=>'Inf')") \ |
3038 "After recompiling N times, stay in the interpreter (-1=>'Inf')") \ |
3007 \ |
3039 \ |
3008 product(intx, PerBytecodeRecompilationCutoff, 200, \ |
3040 product(intx, PerBytecodeRecompilationCutoff, 200, \ |
3091 product(uintx, CompressedClassSpaceSize, 1*G, \ |
3123 product(uintx, CompressedClassSpaceSize, 1*G, \ |
3092 "Maximum size of class area in Metaspace when compressed " \ |
3124 "Maximum size of class area in Metaspace when compressed " \ |
3093 "class pointers are used") \ |
3125 "class pointers are used") \ |
3094 \ |
3126 \ |
3095 product(uintx, MinHeapFreeRatio, 40, \ |
3127 product(uintx, MinHeapFreeRatio, 40, \ |
3096 "Min percentage of heap free after GC to avoid expansion") \ |
3128 "The minimum percentage of heap free after GC to avoid expansion")\ |
3097 \ |
3129 \ |
3098 product(uintx, MaxHeapFreeRatio, 70, \ |
3130 product(uintx, MaxHeapFreeRatio, 70, \ |
3099 "Max percentage of heap free after GC to avoid shrinking") \ |
3131 "The maximum percentage of heap free after GC to avoid shrinking")\ |
3100 \ |
3132 \ |
3101 product(intx, SoftRefLRUPolicyMSPerMB, 1000, \ |
3133 product(intx, SoftRefLRUPolicyMSPerMB, 1000, \ |
3102 "Number of milliseconds per MB of free space in the heap") \ |
3134 "Number of milliseconds per MB of free space in the heap") \ |
3103 \ |
3135 \ |
3104 product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K), \ |
3136 product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K), \ |
3105 "Min change in heap space due to GC (in bytes)") \ |
3137 "The minimum change in heap space due to GC (in bytes)") \ |
3106 \ |
3138 \ |
3107 product(uintx, MinMetaspaceExpansion, ScaleForWordSize(256*K), \ |
3139 product(uintx, MinMetaspaceExpansion, ScaleForWordSize(256*K), \ |
3108 "Min expansion of Metaspace (in bytes)") \ |
3140 "The minimum expansion of Metaspace (in bytes)") \ |
3109 \ |
3141 \ |
3110 product(uintx, MinMetaspaceFreeRatio, 40, \ |
3142 product(uintx, MinMetaspaceFreeRatio, 40, \ |
3111 "Min percentage of Metaspace free after GC to avoid expansion") \ |
3143 "The minimum percentage of Metaspace free after GC to avoid " \ |
|
3144 "expansion") \ |
3112 \ |
3145 \ |
3113 product(uintx, MaxMetaspaceFreeRatio, 70, \ |
3146 product(uintx, MaxMetaspaceFreeRatio, 70, \ |
3114 "Max percentage of Metaspace free after GC to avoid shrinking") \ |
3147 "The maximum percentage of Metaspace free after GC to avoid " \ |
|
3148 "shrinking") \ |
3115 \ |
3149 \ |
3116 product(uintx, MaxMetaspaceExpansion, ScaleForWordSize(4*M), \ |
3150 product(uintx, MaxMetaspaceExpansion, ScaleForWordSize(4*M), \ |
3117 "Max expansion of Metaspace without full GC (in bytes)") \ |
3151 "The maximum expansion of Metaspace without full GC (in bytes)") \ |
3118 \ |
3152 \ |
3119 product(uintx, QueuedAllocationWarningCount, 0, \ |
3153 product(uintx, QueuedAllocationWarningCount, 0, \ |
3120 "Number of times an allocation that queues behind a GC " \ |
3154 "Number of times an allocation that queues behind a GC " \ |
3121 "will retry before printing a warning") \ |
3155 "will retry before printing a warning") \ |
3122 \ |
3156 \ |
3159 \ |
3194 \ |
3160 product(intx, PrintFLSCensus, 0, \ |
3195 product(intx, PrintFLSCensus, 0, \ |
3161 "Census for CMS' FreeListSpace") \ |
3196 "Census for CMS' FreeListSpace") \ |
3162 \ |
3197 \ |
3163 develop(uintx, GCExpandToAllocateDelayMillis, 0, \ |
3198 develop(uintx, GCExpandToAllocateDelayMillis, 0, \ |
3164 "Delay in ms between expansion and allocation") \ |
3199 "Delay between expansion and allocation (in milliseconds)") \ |
3165 \ |
3200 \ |
3166 develop(uintx, GCWorkerDelayMillis, 0, \ |
3201 develop(uintx, GCWorkerDelayMillis, 0, \ |
3167 "Delay in ms in scheduling GC workers") \ |
3202 "Delay in scheduling GC workers (in milliseconds)") \ |
3168 \ |
3203 \ |
3169 product(intx, DeferThrSuspendLoopCount, 4000, \ |
3204 product(intx, DeferThrSuspendLoopCount, 4000, \ |
3170 "(Unstable) Number of times to iterate in safepoint loop " \ |
3205 "(Unstable) Number of times to iterate in safepoint loop " \ |
3171 " before blocking VM threads ") \ |
3206 "before blocking VM threads ") \ |
3172 \ |
3207 \ |
3173 product(intx, DeferPollingPageLoopCount, -1, \ |
3208 product(intx, DeferPollingPageLoopCount, -1, \ |
3174 "(Unsafe,Unstable) Number of iterations in safepoint loop " \ |
3209 "(Unsafe,Unstable) Number of iterations in safepoint loop " \ |
3175 "before changing safepoint polling page to RO ") \ |
3210 "before changing safepoint polling page to RO ") \ |
3176 \ |
3211 \ |
3177 product(intx, SafepointSpinBeforeYield, 2000, "(Unstable)") \ |
3212 product(intx, SafepointSpinBeforeYield, 2000, "(Unstable)") \ |
3178 \ |
3213 \ |
3179 product(bool, PSChunkLargeArrays, true, \ |
3214 product(bool, PSChunkLargeArrays, true, \ |
3180 "true: process large arrays in chunks") \ |
3215 "Process large arrays in chunks") \ |
3181 \ |
3216 \ |
3182 product(uintx, GCDrainStackTargetSize, 64, \ |
3217 product(uintx, GCDrainStackTargetSize, 64, \ |
3183 "how many entries we'll try to leave on the stack during " \ |
3218 "Number of entries we will try to leave on the stack " \ |
3184 "parallel GC") \ |
3219 "during parallel gc") \ |
3185 \ |
3220 \ |
3186 /* stack parameters */ \ |
3221 /* stack parameters */ \ |
3187 product_pd(intx, StackYellowPages, \ |
3222 product_pd(intx, StackYellowPages, \ |
3188 "Number of yellow zone (recoverable overflows) pages") \ |
3223 "Number of yellow zone (recoverable overflows) pages") \ |
3189 \ |
3224 \ |
3190 product_pd(intx, StackRedPages, \ |
3225 product_pd(intx, StackRedPages, \ |
3191 "Number of red zone (unrecoverable overflows) pages") \ |
3226 "Number of red zone (unrecoverable overflows) pages") \ |
3192 \ |
3227 \ |
3193 product_pd(intx, StackShadowPages, \ |
3228 product_pd(intx, StackShadowPages, \ |
3194 "Number of shadow zone (for overflow checking) pages" \ |
3229 "Number of shadow zone (for overflow checking) pages " \ |
3195 " this should exceed the depth of the VM and native call stack") \ |
3230 "this should exceed the depth of the VM and native call stack") \ |
3196 \ |
3231 \ |
3197 product_pd(intx, ThreadStackSize, \ |
3232 product_pd(intx, ThreadStackSize, \ |
3198 "Thread Stack Size (in Kbytes)") \ |
3233 "Thread Stack Size (in Kbytes)") \ |
3199 \ |
3234 \ |
3200 product_pd(intx, VMThreadStackSize, \ |
3235 product_pd(intx, VMThreadStackSize, \ |
3230 \ |
3265 \ |
3231 product_pd(uintx, ReservedCodeCacheSize, \ |
3266 product_pd(uintx, ReservedCodeCacheSize, \ |
3232 "Reserved code cache size (in bytes) - maximum code cache size") \ |
3267 "Reserved code cache size (in bytes) - maximum code cache size") \ |
3233 \ |
3268 \ |
3234 product(uintx, CodeCacheMinimumFreeSpace, 500*K, \ |
3269 product(uintx, CodeCacheMinimumFreeSpace, 500*K, \ |
3235 "When less than X space left, we stop compiling.") \ |
3270 "When less than X space left, we stop compiling") \ |
3236 \ |
3271 \ |
3237 product_pd(uintx, CodeCacheExpansionSize, \ |
3272 product_pd(uintx, CodeCacheExpansionSize, \ |
3238 "Code cache expansion size (in bytes)") \ |
3273 "Code cache expansion size (in bytes)") \ |
3239 \ |
3274 \ |
3240 develop_pd(uintx, CodeCacheMinBlockLength, \ |
3275 develop_pd(uintx, CodeCacheMinBlockLength, \ |
3241 "Minimum number of segments in a code cache block.") \ |
3276 "Minimum number of segments in a code cache block") \ |
3242 \ |
3277 \ |
3243 notproduct(bool, ExitOnFullCodeCache, false, \ |
3278 notproduct(bool, ExitOnFullCodeCache, false, \ |
3244 "Exit the VM if we fill the code cache.") \ |
3279 "Exit the VM if we fill the code cache") \ |
3245 \ |
3280 \ |
3246 product(bool, UseCodeCacheFlushing, true, \ |
3281 product(bool, UseCodeCacheFlushing, true, \ |
3247 "Attempt to clean the code cache before shutting off compiler") \ |
3282 "Attempt to clean the code cache before shutting off compiler") \ |
3248 \ |
3283 \ |
3249 /* interpreter debugging */ \ |
3284 /* interpreter debugging */ \ |
3250 develop(intx, BinarySwitchThreshold, 5, \ |
3285 develop(intx, BinarySwitchThreshold, 5, \ |
3251 "Minimal number of lookupswitch entries for rewriting to binary " \ |
3286 "Minimal number of lookupswitch entries for rewriting to binary " \ |
3252 "switch") \ |
3287 "switch") \ |
3253 \ |
3288 \ |
3254 develop(intx, StopInterpreterAt, 0, \ |
3289 develop(intx, StopInterpreterAt, 0, \ |
3255 "Stops interpreter execution at specified bytecode number") \ |
3290 "Stop interpreter execution at specified bytecode number") \ |
3256 \ |
3291 \ |
3257 develop(intx, TraceBytecodesAt, 0, \ |
3292 develop(intx, TraceBytecodesAt, 0, \ |
3258 "Traces bytecodes starting with specified bytecode number") \ |
3293 "Trace bytecodes starting with specified bytecode number") \ |
3259 \ |
3294 \ |
3260 /* compiler interface */ \ |
3295 /* compiler interface */ \ |
3261 develop(intx, CIStart, 0, \ |
3296 develop(intx, CIStart, 0, \ |
3262 "the id of the first compilation to permit") \ |
3297 "The id of the first compilation to permit") \ |
3263 \ |
3298 \ |
3264 develop(intx, CIStop, -1, \ |
3299 develop(intx, CIStop, -1, \ |
3265 "the id of the last compilation to permit") \ |
3300 "The id of the last compilation to permit") \ |
3266 \ |
3301 \ |
3267 develop(intx, CIStartOSR, 0, \ |
3302 develop(intx, CIStartOSR, 0, \ |
3268 "the id of the first osr compilation to permit " \ |
3303 "The id of the first osr compilation to permit " \ |
3269 "(CICountOSR must be on)") \ |
3304 "(CICountOSR must be on)") \ |
3270 \ |
3305 \ |
3271 develop(intx, CIStopOSR, -1, \ |
3306 develop(intx, CIStopOSR, -1, \ |
3272 "the id of the last osr compilation to permit " \ |
3307 "The id of the last osr compilation to permit " \ |
3273 "(CICountOSR must be on)") \ |
3308 "(CICountOSR must be on)") \ |
3274 \ |
3309 \ |
3275 develop(intx, CIBreakAtOSR, -1, \ |
3310 develop(intx, CIBreakAtOSR, -1, \ |
3276 "id of osr compilation to break at") \ |
3311 "The id of osr compilation to break at") \ |
3277 \ |
3312 \ |
3278 develop(intx, CIBreakAt, -1, \ |
3313 develop(intx, CIBreakAt, -1, \ |
3279 "id of compilation to break at") \ |
3314 "The id of compilation to break at") \ |
3280 \ |
3315 \ |
3281 product(ccstrlist, CompileOnly, "", \ |
3316 product(ccstrlist, CompileOnly, "", \ |
3282 "List of methods (pkg/class.name) to restrict compilation to") \ |
3317 "List of methods (pkg/class.name) to restrict compilation to") \ |
3283 \ |
3318 \ |
3284 product(ccstr, CompileCommandFile, NULL, \ |
3319 product(ccstr, CompileCommandFile, NULL, \ |
3364 "(Solaris only) Give compiler threads an extra quanta") \ |
3400 "(Solaris only) Give compiler threads an extra quanta") \ |
3365 \ |
3401 \ |
3366 product(bool, VMThreadHintNoPreempt, false, \ |
3402 product(bool, VMThreadHintNoPreempt, false, \ |
3367 "(Solaris only) Give VM thread an extra quanta") \ |
3403 "(Solaris only) Give VM thread an extra quanta") \ |
3368 \ |
3404 \ |
3369 product(intx, JavaPriority1_To_OSPriority, -1, "Map Java priorities to OS priorities") \ |
3405 product(intx, JavaPriority1_To_OSPriority, -1, \ |
3370 product(intx, JavaPriority2_To_OSPriority, -1, "Map Java priorities to OS priorities") \ |
3406 "Map Java priorities to OS priorities") \ |
3371 product(intx, JavaPriority3_To_OSPriority, -1, "Map Java priorities to OS priorities") \ |
3407 \ |
3372 product(intx, JavaPriority4_To_OSPriority, -1, "Map Java priorities to OS priorities") \ |
3408 product(intx, JavaPriority2_To_OSPriority, -1, \ |
3373 product(intx, JavaPriority5_To_OSPriority, -1, "Map Java priorities to OS priorities") \ |
3409 "Map Java priorities to OS priorities") \ |
3374 product(intx, JavaPriority6_To_OSPriority, -1, "Map Java priorities to OS priorities") \ |
3410 \ |
3375 product(intx, JavaPriority7_To_OSPriority, -1, "Map Java priorities to OS priorities") \ |
3411 product(intx, JavaPriority3_To_OSPriority, -1, \ |
3376 product(intx, JavaPriority8_To_OSPriority, -1, "Map Java priorities to OS priorities") \ |
3412 "Map Java priorities to OS priorities") \ |
3377 product(intx, JavaPriority9_To_OSPriority, -1, "Map Java priorities to OS priorities") \ |
3413 \ |
3378 product(intx, JavaPriority10_To_OSPriority,-1, "Map Java priorities to OS priorities") \ |
3414 product(intx, JavaPriority4_To_OSPriority, -1, \ |
|
3415 "Map Java priorities to OS priorities") \ |
|
3416 \ |
|
3417 product(intx, JavaPriority5_To_OSPriority, -1, \ |
|
3418 "Map Java priorities to OS priorities") \ |
|
3419 \ |
|
3420 product(intx, JavaPriority6_To_OSPriority, -1, \ |
|
3421 "Map Java priorities to OS priorities") \ |
|
3422 \ |
|
3423 product(intx, JavaPriority7_To_OSPriority, -1, \ |
|
3424 "Map Java priorities to OS priorities") \ |
|
3425 \ |
|
3426 product(intx, JavaPriority8_To_OSPriority, -1, \ |
|
3427 "Map Java priorities to OS priorities") \ |
|
3428 \ |
|
3429 product(intx, JavaPriority9_To_OSPriority, -1, \ |
|
3430 "Map Java priorities to OS priorities") \ |
|
3431 \ |
|
3432 product(intx, JavaPriority10_To_OSPriority,-1, \ |
|
3433 "Map Java priorities to OS priorities") \ |
3379 \ |
3434 \ |
3380 experimental(bool, UseCriticalJavaThreadPriority, false, \ |
3435 experimental(bool, UseCriticalJavaThreadPriority, false, \ |
3381 "Java thread priority 10 maps to critical scheduling priority") \ |
3436 "Java thread priority 10 maps to critical scheduling priority") \ |
3382 \ |
3437 \ |
3383 experimental(bool, UseCriticalCompilerThreadPriority, false, \ |
3438 experimental(bool, UseCriticalCompilerThreadPriority, false, \ |
3404 /* Background Compilation */ \ |
3459 /* Background Compilation */ \ |
3405 develop(intx, LongCompileThreshold, 50, \ |
3460 develop(intx, LongCompileThreshold, 50, \ |
3406 "Used with +TraceLongCompiles") \ |
3461 "Used with +TraceLongCompiles") \ |
3407 \ |
3462 \ |
3408 product(intx, StarvationMonitorInterval, 200, \ |
3463 product(intx, StarvationMonitorInterval, 200, \ |
3409 "Pause between each check in ms") \ |
3464 "Pause between each check (in milliseconds)") \ |
3410 \ |
3465 \ |
3411 /* recompilation */ \ |
3466 /* recompilation */ \ |
3412 product_pd(intx, CompileThreshold, \ |
3467 product_pd(intx, CompileThreshold, \ |
3413 "number of interpreted method invocations before (re-)compiling") \ |
3468 "number of interpreted method invocations before (re-)compiling") \ |
3414 \ |
3469 \ |
3415 product_pd(intx, BackEdgeThreshold, \ |
3470 product_pd(intx, BackEdgeThreshold, \ |
3416 "Interpreter Back edge threshold at which an OSR compilation is invoked")\ |
3471 "Interpreter Back edge threshold at which an OSR compilation is " \ |
|
3472 "invoked") \ |
3417 \ |
3473 \ |
3418 product(intx, Tier0InvokeNotifyFreqLog, 7, \ |
3474 product(intx, Tier0InvokeNotifyFreqLog, 7, \ |
3419 "Interpreter (tier 0) invocation notification frequency.") \ |
3475 "Interpreter (tier 0) invocation notification frequency") \ |
3420 \ |
3476 \ |
3421 product(intx, Tier2InvokeNotifyFreqLog, 11, \ |
3477 product(intx, Tier2InvokeNotifyFreqLog, 11, \ |
3422 "C1 without MDO (tier 2) invocation notification frequency.") \ |
3478 "C1 without MDO (tier 2) invocation notification frequency") \ |
3423 \ |
3479 \ |
3424 product(intx, Tier3InvokeNotifyFreqLog, 10, \ |
3480 product(intx, Tier3InvokeNotifyFreqLog, 10, \ |
3425 "C1 with MDO profiling (tier 3) invocation notification " \ |
3481 "C1 with MDO profiling (tier 3) invocation notification " \ |
3426 "frequency.") \ |
3482 "frequency") \ |
3427 \ |
3483 \ |
3428 product(intx, Tier23InlineeNotifyFreqLog, 20, \ |
3484 product(intx, Tier23InlineeNotifyFreqLog, 20, \ |
3429 "Inlinee invocation (tiers 2 and 3) notification frequency") \ |
3485 "Inlinee invocation (tiers 2 and 3) notification frequency") \ |
3430 \ |
3486 \ |
3431 product(intx, Tier0BackedgeNotifyFreqLog, 10, \ |
3487 product(intx, Tier0BackedgeNotifyFreqLog, 10, \ |
3432 "Interpreter (tier 0) invocation notification frequency.") \ |
3488 "Interpreter (tier 0) invocation notification frequency") \ |
3433 \ |
3489 \ |
3434 product(intx, Tier2BackedgeNotifyFreqLog, 14, \ |
3490 product(intx, Tier2BackedgeNotifyFreqLog, 14, \ |
3435 "C1 without MDO (tier 2) invocation notification frequency.") \ |
3491 "C1 without MDO (tier 2) invocation notification frequency") \ |
3436 \ |
3492 \ |
3437 product(intx, Tier3BackedgeNotifyFreqLog, 13, \ |
3493 product(intx, Tier3BackedgeNotifyFreqLog, 13, \ |
3438 "C1 with MDO profiling (tier 3) invocation notification " \ |
3494 "C1 with MDO profiling (tier 3) invocation notification " \ |
3439 "frequency.") \ |
3495 "frequency") \ |
3440 \ |
3496 \ |
3441 product(intx, Tier2CompileThreshold, 0, \ |
3497 product(intx, Tier2CompileThreshold, 0, \ |
3442 "threshold at which tier 2 compilation is invoked") \ |
3498 "threshold at which tier 2 compilation is invoked") \ |
3443 \ |
3499 \ |
3444 product(intx, Tier2BackEdgeThreshold, 0, \ |
3500 product(intx, Tier2BackEdgeThreshold, 0, \ |
3514 \ |
3570 \ |
3515 product(bool, PrintTieredEvents, false, \ |
3571 product(bool, PrintTieredEvents, false, \ |
3516 "Print tiered events notifications") \ |
3572 "Print tiered events notifications") \ |
3517 \ |
3573 \ |
3518 product_pd(intx, OnStackReplacePercentage, \ |
3574 product_pd(intx, OnStackReplacePercentage, \ |
3519 "NON_TIERED number of method invocations/branches (expressed as %"\ |
3575 "NON_TIERED number of method invocations/branches (expressed as " \ |
3520 "of CompileThreshold) before (re-)compiling OSR code") \ |
3576 "% of CompileThreshold) before (re-)compiling OSR code") \ |
3521 \ |
3577 \ |
3522 product(intx, InterpreterProfilePercentage, 33, \ |
3578 product(intx, InterpreterProfilePercentage, 33, \ |
3523 "NON_TIERED number of method invocations/branches (expressed as %"\ |
3579 "NON_TIERED number of method invocations/branches (expressed as " \ |
3524 "of CompileThreshold) before profiling in the interpreter") \ |
3580 "% of CompileThreshold) before profiling in the interpreter") \ |
3525 \ |
3581 \ |
3526 develop(intx, MaxRecompilationSearchLength, 10, \ |
3582 develop(intx, MaxRecompilationSearchLength, 10, \ |
3527 "max. # frames to inspect searching for recompilee") \ |
3583 "The maximum number of frames to inspect when searching for " \ |
|
3584 "recompilee") \ |
3528 \ |
3585 \ |
3529 develop(intx, MaxInterpretedSearchLength, 3, \ |
3586 develop(intx, MaxInterpretedSearchLength, 3, \ |
3530 "max. # interp. frames to skip when searching for recompilee") \ |
3587 "The maximum number of interpreted frames to skip when searching "\ |
|
3588 "for recompilee") \ |
3531 \ |
3589 \ |
3532 develop(intx, DesiredMethodLimit, 8000, \ |
3590 develop(intx, DesiredMethodLimit, 8000, \ |
3533 "desired max. method size (in bytecodes) after inlining") \ |
3591 "The desired maximum method size (in bytecodes) after inlining") \ |
3534 \ |
3592 \ |
3535 develop(intx, HugeMethodLimit, 8000, \ |
3593 develop(intx, HugeMethodLimit, 8000, \ |
3536 "don't compile methods larger than this if " \ |
3594 "Don't compile methods larger than this if " \ |
3537 "+DontCompileHugeMethods") \ |
3595 "+DontCompileHugeMethods") \ |
3538 \ |
3596 \ |
3539 /* New JDK 1.4 reflection implementation */ \ |
3597 /* New JDK 1.4 reflection implementation */ \ |
3540 \ |
3598 \ |
3541 develop(bool, UseNewReflection, true, \ |
3599 develop(bool, UseNewReflection, true, \ |