From 84e65c63e7482590d535e86f7660a00ae8a0cecb Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 17 Jul 2019 19:23:16 +0200 Subject: Start on amal program Fix mutex issue in lhs expr which can cause a deadlock when a file has an error and throws and doesn't close the mutex and another thread waits for that mutex. The mutex can instead be removed and ignore race conditions which are uncommon. This should improve memory usage and performance. --- include/bytecode/bytecode.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/bytecode/bytecode.h') diff --git a/include/bytecode/bytecode.h b/include/bytecode/bytecode.h index 600c9f2..739aa79 100644 --- a/include/bytecode/bytecode.h +++ b/include/bytecode/bytecode.h @@ -9,7 +9,6 @@ #include /*doc(Opcode) - # Opcode Variable length opcodes. Sizes range from 1 to 4 bytes. # Instruction formats Instructions can be in 6 different formats: @@ -50,12 +49,12 @@ typedef enum { typedef u8 AmalOpcodeType; typedef struct { - Buffer/**/ instructions; + Buffer/**/ data; } Bytecode; typedef struct { jmp_buf env; - Bytecode *bytecode; + Bytecode bytecode; Parser *parser; /* borrowed */ } BytecodeCompilerContext; -- cgit v1.2.3