Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/develop cfcc24c81 -> 999a82622


newt - Reduce stop channel capacity.

Oops, the previous commit (cfcc24c81692652355d990d1963a59e8b4058f89)
gave too much capacity to the stop channel.  It should be num-threads,
not num-compile-entries.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/999a8262
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/999a8262
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/999a8262

Branch: refs/heads/develop
Commit: 999a82622d0e2e9bbc7b086998750bc50cd1b591
Parents: cfcc24c
Author: Christopher Collins <[email protected]>
Authored: Tue Jan 10 18:47:22 2017 -0800
Committer: Christopher Collins <[email protected]>
Committed: Tue Jan 10 18:47:22 2017 -0800

----------------------------------------------------------------------
 newt/builder/build.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/999a8262/newt/builder/build.go
----------------------------------------------------------------------
diff --git a/newt/builder/build.go b/newt/builder/build.go
index 4de98eb..232a39e 100644
--- a/newt/builder/build.go
+++ b/newt/builder/build.go
@@ -520,7 +520,7 @@ func (b *Builder) Build() error {
        jobs := make(chan toolchain.CompilerJob, len(entries))
        defer close(jobs)
 
-       stop := make(chan struct{}, len(entries))
+       stop := make(chan struct{}, newtutil.NewtNumJobs)
        defer close(stop)
 
        errors := make(chan error, newtutil.NewtNumJobs)

Reply via email to