Descriptioncmd/cgo: replace C.malloc with our own wrapper
This allows us to make two changes:
1. Force the argument type to be size_t, even on broken
systems that declare malloc to take a ulong.
2. Call runtime.throw if malloc fails.
(That is, the program crashes; it does not panic.)
Fixes issue 3403.
Fixes issue 5926.
Patch Set 1 #Patch Set 2 : diff -r 22365bd87858 https://code.google.com/p/go/ #Patch Set 3 : diff -r 22365bd87858 https://code.google.com/p/go/ #
Total comments: 1
Patch Set 4 : diff -r e176e9d59540 https://code.google.com/p/go/ #Patch Set 5 : diff -r 1b195d6fe342 https://code.google.com/p/go/ #
MessagesTotal messages: 6
|