Skip to content

Commit

Permalink
Remove console.log and attempt to fix thread numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
arnav-ag committed Apr 19, 2024
1 parent 1e3e6d6 commit 5b614d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vm/oogavm-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ const compileComp = {
// jump to the next select case if possible
jof.addr = wc;
} else if (compCase.tag === 'SelectDefaultCase') {
console.log('Default case');
// log('Default case');
hasDefault = true;
compile(compCase.body, ce);
instrs[wc++] = { tag: Opcodes.END_ATOMIC };
Expand Down
4 changes: 3 additions & 1 deletion src/vm/oogavm-machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,9 @@ const microcode = {
}

let threadsInfo: ThreadInfo[] = [];
for (let [threadId, thread] of threads.entries()) {
// sort the threads by threadId in ascending order
let sortedThreads = new Map([...threads.entries()].sort());
for (let [threadId, thread] of sortedThreads) {
// Ignore the currentThread because it is old
if (currentThreadId === threadId) {
continue;
Expand Down

0 comments on commit 5b614d0

Please sign in to comment.