Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(301)

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/ Created 13 years, 3 months ago
Right Patch Set: diff -r f44057cc01b2 https://go.googlecode.com/hg/ Created 12 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/runtime/atomic_386.c ('k') | src/pkg/runtime/export_test.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b