775 public boolean isSharingEnabled() {
776 if (sharingEnabled == null) {
777 Flag flag = getCommandLineFlag("UseSharedSpaces");
778 sharingEnabled = (flag == null)? Boolean.FALSE :
779 (flag.getBool()? Boolean.TRUE: Boolean.FALSE);
780 }
781 return sharingEnabled.booleanValue();
782 }
783
784 public boolean isCompressedOopsEnabled() {
785 if (compressedOopsEnabled == null) {
786 Flag flag = getCommandLineFlag("UseCompressedOops");
787 compressedOopsEnabled = (flag == null) ? Boolean.FALSE:
788 (flag.getBool()? Boolean.TRUE: Boolean.FALSE);
789 }
790 return compressedOopsEnabled.booleanValue();
791 }
792
793 public boolean isCompressedKlassPointersEnabled() {
794 if (compressedKlassPointersEnabled == null) {
795 Flag flag = getCommandLineFlag("UseCompressedKlassPointers");
796 compressedKlassPointersEnabled = (flag == null) ? Boolean.FALSE:
797 (flag.getBool()? Boolean.TRUE: Boolean.FALSE);
798 }
799 return compressedKlassPointersEnabled.booleanValue();
800 }
801
802 public int getObjectAlignmentInBytes() {
803 if (objectAlignmentInBytes == 0) {
804 Flag flag = getCommandLineFlag("ObjectAlignmentInBytes");
805 objectAlignmentInBytes = (flag == null) ? 8 : (int)flag.getIntx();
806 }
807 return objectAlignmentInBytes;
808 }
809
810 /** Indicates whether Thread-Local Allocation Buffers are used */
811 public boolean getUseTLAB() {
812 Flag flag = getCommandLineFlag("UseTLAB");
813 return (flag == null) ? false: flag.getBool();
814 }
815
|
775 public boolean isSharingEnabled() {
776 if (sharingEnabled == null) {
777 Flag flag = getCommandLineFlag("UseSharedSpaces");
778 sharingEnabled = (flag == null)? Boolean.FALSE :
779 (flag.getBool()? Boolean.TRUE: Boolean.FALSE);
780 }
781 return sharingEnabled.booleanValue();
782 }
783
784 public boolean isCompressedOopsEnabled() {
785 if (compressedOopsEnabled == null) {
786 Flag flag = getCommandLineFlag("UseCompressedOops");
787 compressedOopsEnabled = (flag == null) ? Boolean.FALSE:
788 (flag.getBool()? Boolean.TRUE: Boolean.FALSE);
789 }
790 return compressedOopsEnabled.booleanValue();
791 }
792
793 public boolean isCompressedKlassPointersEnabled() {
794 if (compressedKlassPointersEnabled == null) {
795 Flag flag = getCommandLineFlag("UseCompressedClassPointers");
796 compressedKlassPointersEnabled = (flag == null) ? Boolean.FALSE:
797 (flag.getBool()? Boolean.TRUE: Boolean.FALSE);
798 }
799 return compressedKlassPointersEnabled.booleanValue();
800 }
801
802 public int getObjectAlignmentInBytes() {
803 if (objectAlignmentInBytes == 0) {
804 Flag flag = getCommandLineFlag("ObjectAlignmentInBytes");
805 objectAlignmentInBytes = (flag == null) ? 8 : (int)flag.getIntx();
806 }
807 return objectAlignmentInBytes;
808 }
809
810 /** Indicates whether Thread-Local Allocation Buffers are used */
811 public boolean getUseTLAB() {
812 Flag flag = getCommandLineFlag("UseTLAB");
813 return (flag == null) ? false: flag.getBool();
814 }
815
|