Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: editor/build/build.py

Issue 252063002: Rollback to 1024m max heap. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.deploy/dart_feature.product » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 import glob 7 import glob
8 import gsutil 8 import gsutil
9 import imp 9 import imp
10 import optparse 10 import optparse
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 '<dict>\n\t<key>NSHighResolutionCapable</key>\n\t\t<true/>')]) 960 '<dict>\n\t<key>NSHighResolutionCapable</key>\n\t\t<true/>')])
961 bot_utils.run(['zip', '-q', zipFile, infofile], env=os.environ) 961 bot_utils.run(['zip', '-q', zipFile, infofile], env=os.environ)
962 os.remove(infofile) 962 os.remove(infofile)
963 963
964 964
965 def Modify64BitDartEditorIni(iniFilePath): 965 def Modify64BitDartEditorIni(iniFilePath):
966 f = open(iniFilePath, 'r') 966 f = open(iniFilePath, 'r')
967 lines = f.readlines() 967 lines = f.readlines()
968 f.close() 968 f.close()
969 lines[lines.index('-Xms40m\n')] = '-Xms256m\n' 969 lines[lines.index('-Xms40m\n')] = '-Xms256m\n'
970 lines[lines.index('-Xmx1850m\n')] = '-Xmx2000m\n' 970 lines[lines.index('-Xmx1024m\n')] = '-Xmx2000m\n'
971 # Add -d64 to give better error messages to user in 64 bit mode. 971 # Add -d64 to give better error messages to user in 64 bit mode.
972 lines[lines.index('-vmargs\n')] = '-vmargs\n-d64\n' 972 lines[lines.index('-vmargs\n')] = '-vmargs\n-d64\n'
973 f = open(iniFilePath, 'w') 973 f = open(iniFilePath, 'w')
974 f.writelines(lines) 974 f.writelines(lines)
975 f.close() 975 f.close()
976 976
977 977
978 def RunEditorTests(buildout, buildos): 978 def RunEditorTests(buildout, buildos):
979 StartBuildStep('run_tests') 979 StartBuildStep('run_tests')
980 980
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 def FileDelete(f): 1250 def FileDelete(f):
1251 """delete the given file - do not re-throw any exceptions that occur""" 1251 """delete the given file - do not re-throw any exceptions that occur"""
1252 if os.path.exists(f): 1252 if os.path.exists(f):
1253 try: 1253 try:
1254 os.remove(f) 1254 os.remove(f)
1255 except OSError: 1255 except OSError:
1256 print 'error deleting %s' % f 1256 print 'error deleting %s' % f
1257 1257
1258 if __name__ == '__main__': 1258 if __name__ == '__main__':
1259 sys.exit(main()) 1259 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.deploy/dart_feature.product » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698