title: runtime does not detect the race on the slice
body: <p>Executing below program with <code>go run.</code> yields fatal errors such as</p>
  <pre><code>fatal error: concurrent map writes
  
  goroutine 103 [running]:
  ...
  </code></pre>
  <p>The runtime detects the racy access on the <code>map</code>, but not on the <code>slice</code></p>
  <p>Why it is so ?</p>
  <p>This is the program i have written:</p>
  <pre class="lang-golang prettyprint-override"><code>package main
  
  import (
      &quot;time&quot;
  )
  
  func main() {
      m := map[string]int{&quot;a&quot;:1}
      s := []int{1}
  
      for i := 0; i &lt; 1000; i++ {
          go func() {
              m[&quot;a&quot;] = i
              s[0] = i
          }()
      }
  
      time.Sleep(3 * time.Second)
  }
  </code></pre>