]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.ssa] cmd/compile/internal/ssa: implement write barriers
authorKeith Randall <khr@golang.org>
Tue, 8 Sep 2015 06:18:02 +0000 (23:18 -0700)
committerKeith Randall <khr@golang.org>
Mon, 14 Sep 2015 16:25:40 +0000 (16:25 +0000)
commite3869a6b65bb0f95dac7eca3d86055160b12589f
treec6c546b920f2d9b16f650407e2f8dd7fb3b6889c
parent5505e8ccc74e8e4cbacace0143730a309b1a7655
[dev.ssa] cmd/compile/internal/ssa: implement write barriers

For now, we only use typedmemmove.  This can be optimized
in future CLs.

Also add a feature to help with binary searching bad compilations.
Together with GOSSAPKG, GOSSAHASH specifies the last few binary digits
of the hash of function names that should be compiled.  So
GOSSAHASH=0110 means compile only those functions whose last 4 bits
of hash are 0110.  By adding digits to the front we can binary search
for the function whose SSA-generated code is causing a test to fail.

Change-Id: I5a8b6b70c6f034f59e5753965234cd42ea36d524
Reviewed-on: https://go-review.googlesource.com/14530
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/builtin.go
src/cmd/compile/internal/gc/builtin/runtime.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/ssa_test.go
src/cmd/dist/test.go
src/cmd/internal/obj/stack.go
src/runtime/mbarrier.go
src/runtime/stack2.go
test/nosplit.go