src/share/vm/runtime/arguments.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/runtime

src/share/vm/runtime/arguments.cpp

Print this page
rev 6132 : 8031755: Type speculation should be used to optimize explicit null checks
Summary: feed profiling data about reference nullness to type speculation.
Reviewed-by:


3779   FLAG_SET_DEFAULT(UseBiasedLocking, false);
3780   LP64_ONLY(FLAG_SET_DEFAULT(UseCompressedOops, false));
3781   LP64_ONLY(FLAG_SET_DEFAULT(UseCompressedClassPointers, false));
3782 #endif // CC_INTERP
3783 
3784 #ifdef COMPILER2
3785   if (!UseBiasedLocking || EmitSync != 0) {
3786     UseOptoBiasInlining = false;
3787   }
3788   if (!EliminateLocks) {
3789     EliminateNestedLocks = false;
3790   }
3791   if (!Inline) {
3792     IncrementalInline = false;
3793   }
3794 #ifndef PRODUCT
3795   if (!IncrementalInline) {
3796     AlwaysIncrementalInline = false;
3797   }
3798 #endif
3799   if (IncrementalInline && FLAG_IS_DEFAULT(MaxNodeLimit)) {
3800     // incremental inlining: bump MaxNodeLimit
3801     FLAG_SET_DEFAULT(MaxNodeLimit, (intx)75000);
3802   }
3803   if (!UseTypeSpeculation && FLAG_IS_DEFAULT(TypeProfileLevel)) {
3804     // nothing to use the profiling, turn if off
3805     FLAG_SET_DEFAULT(TypeProfileLevel, 0);
3806   }
3807   if (UseTypeSpeculation && FLAG_IS_DEFAULT(ReplaceInParentMaps)) {
3808     // Doing the replace in parent maps helps speculation
3809     FLAG_SET_DEFAULT(ReplaceInParentMaps, true);
3810   }
3811 #endif
3812 
3813   if (PrintAssembly && FLAG_IS_DEFAULT(DebugNonSafepoints)) {
3814     warning("PrintAssembly is enabled; turning on DebugNonSafepoints to gain additional output");
3815     DebugNonSafepoints = true;
3816   }
3817 
3818   if (FLAG_IS_CMDLINE(CompressedClassSpaceSize) && !UseCompressedClassPointers) {
3819     warning("Setting CompressedClassSpaceSize has no effect when compressed class pointers are not used");
3820   }
3821 
3822 #ifndef PRODUCT




3779   FLAG_SET_DEFAULT(UseBiasedLocking, false);
3780   LP64_ONLY(FLAG_SET_DEFAULT(UseCompressedOops, false));
3781   LP64_ONLY(FLAG_SET_DEFAULT(UseCompressedClassPointers, false));
3782 #endif // CC_INTERP
3783 
3784 #ifdef COMPILER2
3785   if (!UseBiasedLocking || EmitSync != 0) {
3786     UseOptoBiasInlining = false;
3787   }
3788   if (!EliminateLocks) {
3789     EliminateNestedLocks = false;
3790   }
3791   if (!Inline) {
3792     IncrementalInline = false;
3793   }
3794 #ifndef PRODUCT
3795   if (!IncrementalInline) {
3796     AlwaysIncrementalInline = false;
3797   }
3798 #endif




3799   if (!UseTypeSpeculation && FLAG_IS_DEFAULT(TypeProfileLevel)) {
3800     // nothing to use the profiling, turn if off
3801     FLAG_SET_DEFAULT(TypeProfileLevel, 0);
3802   }
3803   if (UseTypeSpeculation && FLAG_IS_DEFAULT(ReplaceInParentMaps)) {
3804     // Doing the replace in parent maps helps speculation
3805     FLAG_SET_DEFAULT(ReplaceInParentMaps, true);
3806   }
3807 #endif
3808 
3809   if (PrintAssembly && FLAG_IS_DEFAULT(DebugNonSafepoints)) {
3810     warning("PrintAssembly is enabled; turning on DebugNonSafepoints to gain additional output");
3811     DebugNonSafepoints = true;
3812   }
3813 
3814   if (FLAG_IS_CMDLINE(CompressedClassSpaceSize) && !UseCompressedClassPointers) {
3815     warning("Setting CompressedClassSpaceSize has no effect when compressed class pointers are not used");
3816   }
3817 
3818 #ifndef PRODUCT


src/share/vm/runtime/arguments.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File