Grift icon indicating copy to clipboard operation
Grift copied to clipboard

fix a bug in type hashconsing

Open deyaaeldeen opened this issue 5 years ago • 0 comments

The index field in types was not being updated correctly. Before the fix, 0 was written to the index field, regardless of the current value of types_unique_index_counter, because Types-gen-index! has side effects and its result is not written to the variable.

Furthermore, I decreased some code bloat by taking advantage of uniform memory layout of structural types.

Finally, I fixed a memory leak when resizing the types hashconsing table.

deyaaeldeen avatar Apr 08 '20 13:04 deyaaeldeen