]> Cypherpunks repositories - gostls13.git/commit
5g, 6g, 8g: flush modified globals aggressively
authorRuss Cox <rsc@golang.org>
Mon, 20 Feb 2012 18:41:44 +0000 (13:41 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 20 Feb 2012 18:41:44 +0000 (13:41 -0500)
commit8998835543c0055b66c034fbca53d7c294f3956e
treea269b50ba5051c07a0075b3f1019be33362b798e
parentf274551f962f982daafd681c0a8a2e6b29e88315
5g, 6g, 8g: flush modified globals aggressively

The alternative is to record enough information that the
trap handler know which registers contain cached globals
and can flush the registers back to their original locations.
That's significantly more work.

This only affects globals that have been written to.
Code that reads from a global should continue to registerize
as well as before.

Fixes #1304.

R=ken2
CC=golang-dev
https://golang.org/cl/5687046
src/cmd/5g/reg.c
src/cmd/6g/reg.c
src/cmd/8g/reg.c