cgo: init heap c code