]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: only allow heap area to grow to 10MB
authorJeremy Faller <jeremy@golang.org>
Wed, 22 Apr 2020 16:13:33 +0000 (12:13 -0400)
committerJeremy Faller <jeremy@golang.org>
Wed, 22 Apr 2020 22:12:42 +0000 (22:12 +0000)
commit7466cad9c4f9a08133bfb9b3c99c70b4897eed0d
tree0ead61c4be0b8651200eba234d2de41eac6f8dd7
parent00723603eb1e183e010371fc5aa76a3d8efda8d1
[dev.link] cmd/link: only allow heap area to grow to 10MB

With CL 228782, we've removed file I/O, but we're growing the memory too
much. This change will periodically flush the heap area to the mmapped
area (if possible).

Change-Id: I1622c738ee5a1a6d02bff5abb0a5751caf8095c7
Reviewed-on: https://go-review.googlesource.com/c/go/+/229439
Run-TryBot: Jeremy Faller <jeremy@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/outbuf.go