Delta Between Two Patch Sets: src/pkg/runtime/atomic_amd64.c
Issue 5279048 :
code review 5279048: runtime: faster and more scalable GC (Closed)
Left Patch Set: diff -r fd80a4497037 https://go.googlecode.com/hg/
Right Patch Set: diff -r f44057cc01b2 https://go.googlecode.com/hg/
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
src/pkg/runtime/arch_386.h
src/pkg/runtime/arch_amd64.h
src/pkg/runtime/arm/arch.h
src/pkg/runtime/arm/atomic.c
src/pkg/runtime/asm_386.s
src/pkg/runtime/asm_amd64.s
src/pkg/runtime/atomic_386.c
src/pkg/runtime/atomic_amd64.c
src/pkg/runtime/export_test.go
src/pkg/runtime/malloc.h
src/pkg/runtime/mcache.c
src/pkg/runtime/mcentral.c
src/pkg/runtime/mgc0.c
src/pkg/runtime/mheap.c
src/pkg/runtime/mprof.goc
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h
src/pkg/runtime/runtime.c
src/pkg/runtime/runtime_test.go
LEFT RIGHT
(no file at all) 1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #include "runtime.h" 5 #include "runtime.h"
6 6
7 #pragma textflag 7 7 #pragma textflag 7
8 uint32 8 uint32
9 runtime·atomicload(uint32 volatile* addr) 9 runtime·atomicload(uint32 volatile* addr)
10 { 10 {
11 return *addr; 11 return *addr;
12 } 12 }
13 13
14 #pragma textflag 7 14 #pragma textflag 7
15 uint64
16 runtime·atomicload64(uint64 volatile* addr)
17 {
18 return *addr;
19 }
20
21 #pragma textflag 7
15 void* 22 void*
16 runtime·atomicloadp(void* volatile* addr) 23 runtime·atomicloadp(void* volatile* addr)
17 { 24 {
18 return *addr; 25 return *addr;
19 } 26 }
LEFT RIGHT