Buggy code:
public class VMOptions { private static final Logger LOG = Logger . getInstance ( "#com.intellij.diagnostic.VMOptions" ) ; @ NonNls static final String XMX_OPTION_NAME = "Xmx" ; @ NonNls static final String PERM_GEN_OPTION_NAME = "XX:MaxPermSize" ; @ NonNls static final String CODE_CACHE_OPTION_NAME = "XX:ReservedCodeCacheSize" ; @ NonNls static final String MAC_ARCH_VM_OPTIONS = ( SystemInfo . is64Bit ) ? "VMOptions.x86_64" : "VMOptions.i386" ; @ NonNls private static final String XMX_OPTION = "-" + ( VMOptions . XMX_OPTION_NAME ) ; @ NonNls private static final String PERM_GEN_OPTION = ( "-" + ( VMOptions . PERM_GEN_OPTION_NAME ) ) + "=" ; @ NonNls private static final String CODE_CACHE_OPTION = ( "-" + ( VMOptions . CODE_CACHE_OPTION_NAME ) ) + "=" ; @ NonNls private static final String MEM_SIZE_EXPR = "(\\d*)([a-zA-Z]*)" ; @ NonNls private static final Pattern XMX_PATTERN = Pattern . compile ( ( ( VMOptions . XMX_OPTION ) + ( VMOptions . MEM_SIZE_EXPR ) ) ) ; @ NonNls private static final Pattern PERM_GEN_PATTERN = Pattern . compile ( ( ( VMOptions . PERM_GEN_OPTION ) + ( VMOptions . MEM_SIZE_EXPR ) ) ) ; @ NonNls private static final Pattern CODE_CACHE_PATTERN = Pattern . compile ( ( ( VMOptions . CODE_CACHE_OPTION ) + ( VMOptions . MEM_SIZE_EXPR ) ) ) ; @ NonNls private static final Pattern MAC_OS_VM_OPTIONS_PATTERN = Pattern . compile ( ( ( "(<key>" + ( VMOptions . MAC_ARCH_VM_OPTIONS ) ) + "<//key>(?:(?:\\s*)(?:<!--(?:.*)-->(?:\\s*))*)<string>)(.*)(<//string>)" ) ) ; @ NonNls private static final String INFO_PLIST = "//Contents//Info.plist" ; private static String ourTestPath ; private static boolean ourTestMacOs ; @ TestOnly static void setTestFile ( String path , boolean isMacOs ) { } @ TestOnly static void clearTestFile ( ) { } public static int readXmx ( ) { } public static void writeXmx ( int value ) { } public static int readMaxPermGen ( ) { } public static int readCodeCache ( ) { } public static void writeMaxPermGen ( int value ) { } public static void writeCodeCache ( int value ) { } @ Nullable public static String read ( ) { } private static int readOption ( Pattern pattern ) { } private static double parseUnit ( String unitString ) { } private static void writeOption ( String option , int value , Pattern pattern ) { } @ Nullable private static String extractMacOsVMOptions ( String text ) { } private static String replace ( Pattern pattern , String text , String replacement , String prefix , String suffix , String defaultResult ) { } @ Nullable private static File getFile ( ) { } @ NonNls @ Nullable public static String getSettingsFilePath ( ) { } @ NotNull private static String doGetSettingsFilePath ( ) { final String vmOptionsFile = System . getProperty ( "jb.vmOptionsFile" ) ; if ( ! ( StringUtil . isEmptyOrSpaces ( vmOptionsFile ) ) ) { return vmOptionsFile ; } if ( SystemInfo . isMac ) { return ( PathManager . getHomePath ( ) ) + ( VMOptions . INFO_PLIST ) ; } final String productName = ApplicationNamesInfo . getInstance ( ) . getProductName ( ) . toLowerCase ( ) ; <START_BUG> final String platformSuffix = ( SystemInfo . is64Bit ) ? "64" : "" ; <END_BUG> final String osSuffix = ( SystemInfo . isWindows ) ? ".exe" : "" ; return ( ( ( ( ( PathManager . getBinPath ( ) ) + ( File . separatorChar ) ) + productName ) + platformSuffix ) + osSuffix ) + ".vmoptions" ; } private static boolean isMacOs ( ) { } }

Fix:
final String platformSuffix = ( ( SystemInfo . is64Bit ) && ( ! ( SystemInfo . isLinux ) ) ) ? "64" : "" ;