News for hackers. Stuff that matters.
Re:TinyGo: New Go Compiler Based on LLVM by ori_b on Thursday July 18, 2019 @10:23PM (#20475720)
Also, even on 64 bit machines, conservative GCs often just do a naive scan of the stack. And of uninitialized values on the heap. This means that garbage may be treated as live. Garbage often includes pointers that should no longer be live.
Re:TinyGo: New Go Compiler Based on LLVM by compsciphd on Friday July 19, 2019 @02:41PM (#20481345)
I don't believe go can have uninitialized values. every variable has a default "zero value"
Re:TinyGo: New Go Compiler Based on LLVM by aykevl on Friday July 19, 2019 @05:18PM (#20482527)
Not on the heap, but it can certainly have uninitialized variables on the stack. These cannot be created in normal Go code but the optimizer may decide to leave some values uninitialized when it determines that this is safe to do.