Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
Zariel
12y ago
0 comments
Share
The go runtime will manage memory of thins allocated in Go land but you must manage memory in C land.
If you allocate memory using C.malloc you must use C.free otherwise you will leak memory.
0 comments
default
newest
oldest
kasey_junk
12y ago
Which again is very similar to JNI. I'm genuinely curious as to how Go's FFI differs from Java's to make that a distinguishing characteristic between the 2 languages.
twic
12y ago
So how can native code get access to objects on the Go heap?
j
/
k
navigate · click thread line to collapse