You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
func fooB(path str) {
var ss []i32
var INIT_HEAP_SIZE i32 = 32 * (1 << 20) // TODO : should be tested against real cx/config.go::INIT_HEAP_SIZE
for i := 0; i < INIT_HEAP_SIZE; i++ {
ss = append(ss, 1)
}
}
func fooA(path str, filename str, s f32, r f32) {
fooB(sprintf("%s/%s", path, filename))
}
func main()() {
fooA("test", "A", 1.0, 2.0)
}
This seems to be fixed now. For the record, I ran this code (which uses 2 Mb of heap memory as INIT_HEAP_SIZE; I also tried with 4 Mb and it worked, which means that CX is correctly expanding the heap size beyond INIT_HEAP_SIZE).
package main
func fooB(path str) {
var ss []i32
var INIT_HEAP_SIZE i32 = 2097152
for i := 0; i < INIT_HEAP_SIZE; i++ {
ss = append(ss, 1)
}
}
func fooA(path str, filename str, s f32, r f32) {
fooB(sprintf("%s/%s", path, filename))
}
func main()() {
fooA("test", "A", 1.0, 2.0)
}
@asahi3g commented on Mar 12
To Reproduce
Expected behavior
Screenshots
Desktop:
The text was updated successfully, but these errors were encountered: