
Weekly report-July 17,2023
1. Optimize some virtual machine function interfaces for easy external library access
- Add parameter validation for critical virtual machine interfaces to ensure valid inputs
- Provide interface documents with detailed comments on parameters, return values, functions, etc.
- Offer sample code to demonstrate proper interface usage
- Design unified error codes for easy exception handling by interface users
- Support asynchronous non-blocking interfaces to improve throughput
2. Fix byte code virtual machine stack data exceptions, add stack depth checks
- Add stack overflow checks to prevent out-of-bounds reads
- Catch exceptions during bytecode execution to prevent VM crashes
- Increase stack depth logging to ease debugging
- Optimize stack expansion policy to reserve space in advance
- Use circular stack to reuse memory
- Add stack stress tests to evaluate performance
- Design stack data caching to reduce accesses