1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: various fixes for [heap]/auto-heap handling (#10033)

This commit is contained in:
Uwe Krüger
2021-05-07 14:58:48 +02:00
committed by GitHub
parent 5b4eef8010
commit d26ac5692e
37 changed files with 279 additions and 149 deletions

View File

@ -43,7 +43,7 @@ fn (mut ctx Context) println(s string) {
}
fn do_timeout(c &Context) {
mut ctx := c
mut ctx := unsafe { c }
time.sleep(ctx.timeout_ms * time.millisecond)
exit(ctx.exitcode)
}

View File

@ -171,7 +171,7 @@ fn (mut context Context) get_changed_vfiles() int {
}
fn change_detection_loop(ocontext &Context) {
mut context := ocontext
mut context := unsafe { ocontext }
for {
if context.v_cycles >= max_v_cycles || context.scan_cycles >= max_scan_cycles {
context.is_exiting = true