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

Side by Side Diff: src/pkg/runtime/runtime.c

Issue 204053: code review 204053: runtime: instrument malloc + garbage collector. (Closed)
Patch Set: code review 204053: runtime: instrument malloc + garbage collector. Created 15 years, 1 month 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:
View unified diff | Download patch
« no previous file with comments | « src/pkg/runtime/runtime.h ('k') | test/garbage/parser.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 int32 panicking = 0; 7 int32 panicking = 0;
8 int32 maxround = sizeof(uintptr); 8 int32 maxround = sizeof(uintptr);
9 int32 fd = 1; 9 int32 fd = 1;
10 10
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 [AFAKE] { nohash, noequal, noprint, nocopy }, 454 [AFAKE] { nohash, noequal, noprint, nocopy },
455 }; 455 };
456 456
457 #pragma textflag 7 457 #pragma textflag 7
458 void 458 void
459 FLUSH(void *v) 459 FLUSH(void *v)
460 { 460 {
461 USED(v); 461 USED(v);
462 } 462 }
463 463
464 int64
465 nanotime(void)
466 {
467 int64 sec;
468 int32 usec;
469 ········
470 sec = 0;
471 usec = 0;
472 gettime(&sec, &usec);
473 return sec*1000000000 + (int64)usec*1000;
474 }
OLDNEW
« no previous file with comments | « src/pkg/runtime/runtime.h ('k') | test/garbage/parser.go » ('j') | no next file with comments »

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