| Index: pylib/gyp/generator/ninja.py
|
| ===================================================================
|
| --- pylib/gyp/generator/ninja.py (revision 1840)
|
| +++ pylib/gyp/generator/ninja.py (working copy)
|
| @@ -1557,10 +1557,7 @@
|
|
|
| mem_limit = max(1, stat.ullTotalPhys / (4 * (2 ** 30))) # total / 4GB
|
| hard_cap = max(1, int(os.getenv('GYP_LINK_CONCURRENCY_MAX', 2**32)))
|
| - # return min(mem_limit, hard_cap)
|
| - # TODO(scottmg): Temporary speculative fix for OOM on builders
|
| - # See http://crbug.com/333000.
|
| - return 2
|
| + return min(mem_limit, hard_cap)
|
| elif sys.platform.startswith('linux'):
|
| with open("/proc/meminfo") as meminfo:
|
| memtotal_re = re.compile(r'^MemTotal:\s*(\d*)\s*kB')
|
|
|