4ad/go.arm64

runtime: map deletion doesn't work correctly

4ad opened this issue · 1 comments

4ad commented
package main

func main() {
    m := make(map[string]int)
    m["fourty-two"] = 42
    m["six"] = 6
    println(m["fourty-two"])
    println(m["six"])
    delete(m, "fourty-two")
    v, ok := m["fourty-two"]
    println(v, ok)
    println(m["six"])
}

: xgene:tmp; map.arm
42
6
0 false
6
: xgene:tmp; map.arm64
42
6
0 false
0
: xgene:tmp; 

I believe this has been silently fixed in latest big.runtime branch.