title: Golang Runtime recompile
body: <p>Well ,I sooooo flesh for the Golang . And I get a mission to recompile the Golang 's runtime via this <a href="https://www.ibm.com/blogs/bluemix/2015/11/docker-insane-scale-on-ibm-power-systems/" rel="nofollow">blog</a>.</p>
  
  <p><code>
  One way is to change this default number in the GO runtime (GCC-GO or GC) and recompile the runtime. In proc.go, you can change the line sched.maxmcount = 10000 to a number that is appropriate.
  </code></p>
  
  <h3>First: recompile the whole golang.</h3>
  
  <p>I follow this <a href="https://golang.org/doc/install/source" rel="nofollow">Installing Go from source</a> ,and execute this cmd：</p>
  
  <p><code>./all.bash</code></p>
  
  <p>Output is :</p>
  
  <pre><code>Building Go bootstrap tool.
  cmd/dist
  import cycle not allowed
  package cmd/dist
      imports bytes
      imports errors
      imports runtime
      imports runtime/internal/atomic
      imports unsafe
      imports runtime
  </code></pre>
  
  <p>It seems everything work well, but while I check about the <code>go</code> cmd，it's the same. Also ,I can't find any change to bin or pkg dir.</p>
  
  <h3>Then ,try to build pkg</h3>
  
  <p><code>go install src/runtime</code></p>
  
  <p>Also, it doesn't come out any error and I can't find any target build. </p>
  
  <p>I  have no any idea how to do it  :(</p>
  
  <p>Any suggestion well so appresiate !</p>