github.com/spotify/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/src/pkg/runtime/race0.c (about)

     1  // Copyright 2011 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Stub implementation of the race detector API.
     6  // +build !race
     7  
     8  #include "runtime.h"
     9  
    10  uintptr
    11  runtime·raceinit(void)
    12  {
    13  	return 0;
    14  }
    15  
    16  void
    17  runtime·racefini(void)
    18  {
    19  }
    20  
    21  
    22  void
    23  runtime·racemapshadow(void *addr, uintptr size)
    24  {
    25  	USED(addr);
    26  	USED(size);
    27  }
    28  
    29  void
    30  runtime·racewritepc(void *addr, void *callpc, void *pc)
    31  {
    32  	USED(addr);
    33  	USED(callpc);
    34  	USED(pc);
    35  }
    36  
    37  void
    38  runtime·racereadpc(void *addr, void *callpc, void *pc)
    39  {
    40  	USED(addr);
    41  	USED(callpc);
    42  	USED(pc);
    43  }
    44  
    45  void
    46  runtime·racewriterangepc(void *addr, uintptr sz, void *callpc, void *pc)
    47  {
    48  	USED(addr);
    49  	USED(sz);
    50  	USED(callpc);
    51  	USED(pc);
    52  }
    53  
    54  void
    55  runtime·racereadrangepc(void *addr, uintptr sz, void *callpc, void *pc)
    56  {
    57  	USED(addr);
    58  	USED(sz);
    59  	USED(callpc);
    60  	USED(pc);
    61  }
    62  
    63  void
    64  runtime·raceacquire(void *addr)
    65  {
    66  	USED(addr);
    67  }
    68  
    69  void
    70  runtime·raceacquireg(G *gp, void *addr)
    71  {
    72  	USED(gp);
    73  	USED(addr);
    74  }
    75  
    76  void
    77  runtime·racerelease(void *addr)
    78  {
    79  	USED(addr);
    80  }
    81  
    82  void
    83  runtime·racereleaseg(G *gp, void *addr)
    84  {
    85  	USED(gp);
    86  	USED(addr);
    87  }
    88  
    89  void
    90  runtime·racereleasemerge(void *addr)
    91  {
    92  	USED(addr);
    93  }
    94  
    95  void
    96  runtime·racereleasemergeg(G *gp, void *addr)
    97  {
    98  	USED(gp);
    99  	USED(addr);
   100  }
   101  
   102  void
   103  runtime·racefingo(void)
   104  {
   105  }
   106  
   107  void
   108  runtime·racemalloc(void *p, uintptr sz)
   109  {
   110  	USED(p);
   111  	USED(sz);
   112  }
   113  
   114  void
   115  runtime·racefree(void *p)
   116  {
   117  	USED(p);
   118  }
   119  
   120  uintptr
   121  runtime·racegostart(void *pc)
   122  {
   123  	USED(pc);
   124  	return 0;
   125  }
   126  
   127  void
   128  runtime·racegoend(void)
   129  {
   130  }