]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix build for race detector
authorShenghou Ma <minux@golang.org>
Wed, 7 Jan 2015 01:40:16 +0000 (20:40 -0500)
committerMinux Ma <minux@golang.org>
Wed, 7 Jan 2015 03:20:42 +0000 (03:20 +0000)
This CL only fixes the build, there are two failing tests:
RaceMapBigValAccess1 and RaceMapBigValAccess2
in runtime/race tests. I haven't investigated why yet.

Updates #9516.

Change-Id: If5bd2f0bee1ee45b1977990ab71e2917aada505f
Reviewed-on: https://go-review.googlesource.com/2401
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/race_amd64.s

index adf557f8a2256bd98c45a9d6b2439b8aeb5e5df9..972cbe3f8a3714411d0c7df9362a91764e829e51 100644 (file)
@@ -202,6 +202,9 @@ TEXT        sync∕atomic·LoadUint64(SB), NOSPLIT, $0-0
 TEXT   sync∕atomic·LoadUintptr(SB), NOSPLIT, $0-0
        JMP     sync∕atomic·LoadInt64(SB)
 
+TEXT   sync∕atomic·LoadPointer(SB), NOSPLIT, $0-0
+       JMP     sync∕atomic·LoadInt64(SB)
+
 // Store
 TEXT   sync∕atomic·StoreInt32(SB), NOSPLIT, $0-0
        MOVQ    $__tsan_go_atomic32_store(SB), AX