Under high concurrency, MAKEFLAGS=-j16 on a large machine there is a race condition between $(O)a ...
14 years, 2 months ago
(2011-03-01 10:48:42 UTC)
#1
Under high concurrency, MAKEFLAGS=-j16 on a large machine there is a race
condition between $(O)a and ($O)l building $(O)l/enam.o
This patch restores the original ordering from make.bash that was removed in CL
4221047.
please drop the blank lines between dependency-only rules. shouldn't the new rule be $(O)a.install $(O)c.install ...
14 years, 2 months ago
(2011-03-01 12:54:52 UTC)
#2
please drop the blank lines between dependency-only rules.
shouldn't the new rule be
$(O)a.install $(O)c.install $(O)g.install: $(O)l.install
?
On Tue, Mar 1, 2011 at 05:48, <dave@cheney.net> wrote:
> Reviewers: golang-dev_googlegroups.com,
>
> Message:
> Under high concurrency, MAKEFLAGS=-j16 on a large machine there is a
> race condition between $(O)a and ($O)l building $(O)l/enam.o
>
> This patch restores the original ordering from make.bash that was
> removed in CL 4221047.
>
> Description:
> build: fix race condition building enam.o
>
> Please review this at http://codereview.appspot.com/4240055/
>
> Affected files:
> M src/cmd/Makefile
>
>
> Index: src/cmd/Makefile
> ===================================================================
> --- a/src/cmd/Makefile
> +++ b/src/cmd/Makefile
> @@ -61,6 +61,8 @@
>
> $(O)g.install: gc.install
>
> +$(O)a.install: $(O)l.install
> +
> %.clean:
> $(MAKE) -C $* clean
>
>
>
>
On 2011/03/01 12:54:52, rsc wrote: > please drop the blank lines between dependency-only rules. Done. ...
14 years, 2 months ago
(2011-03-01 13:14:04 UTC)
#3
On 2011/03/01 12:54:52, rsc wrote:
> please drop the blank lines between dependency-only rules.
Done.
> shouldn't the new rule be
>
> $(O)a.install $(O)c.install $(O)g.install: $(O)l.install
Yes, thank you for spotting that.
Please take another look
Issue 4240055: build: fix race condition building enam.o
(Closed)
Created 14 years, 2 months ago by dave_cheney.net
Modified 14 years, 2 months ago
Reviewers:
Base URL:
Comments: 0