0b1c0dc9c5
Put local actions in a common pool, especially - Assembler (many run for boringssl) - Linker (high memory use) - Dart (high memory use) This should limit the number of concurrent local actions to the number of harts available, avoiding the racing actions triggering out-of-memory failures. Change-Id: Ifa168012d73472a3db349acc36545dd176385bbc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510190 Commit-Queue: Ryan Macnak <rmacnak@google.com> Reviewed-by: Alexander Aprelev <aam@google.com>
13 lines
554 B
Plaintext
13 lines
554 B
Plaintext
# Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
# Define the pool only in one toolchain so all the toolchains share one pool.
|
|
# default_toolchain would make a bit more sense, but it isn't defined yet when
|
|
# the default toolchain is being evaluated.
|
|
if (current_toolchain == host_toolchain) {
|
|
pool("local_action_pool") {
|
|
depth = exec_script("../dart/num_cpus.py", [], "value")
|
|
}
|
|
}
|