comment some debug kprints

This commit is contained in:
Babz 2021-09-18 12:33:13 +02:00
parent 74cac563cf
commit 76cfa0440a
1 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ extern volatile int must_yield;
__attribute__((noreturn)) static void run_vm(void) {
const int job_id = current_job_id;
term_kprint("copy input data...");
// term_kprint("copy input data...");
const int name_len = strlen(new_job_name);
const int prgm_len = strlen(new_job_source);
const int total_len = name_len + prgm_len + 2;
@ -33,7 +33,7 @@ __attribute__((noreturn)) static void run_vm(void) {
strcpy(prgm_buf + name_len + 1, new_job_source);
// now the gloabl static strings can be freed
term_kprint("create wren VM...");
// term_kprint("create wren VM...");
WrenConfiguration config;
init_wren_config(&config);
must_yield = 0;
@ -41,10 +41,10 @@ __attribute__((noreturn)) static void run_vm(void) {
job_vms[job_id] = vm; // place the newly created vm in its slot for later resume
term_kprint("start interpreter...");
// term_kprint("start interpreter...");
must_yield = 1; // yield ASAP
wrenInterpret(vm, new_job_name, new_job_source);
term_kprint("interpreter returned");
// term_kprint("interpreter returned");
// free resources (stack will be freed by the scheduler)
wrenFreeVM(job_vms[job_id]);