Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backend] Wasmvm memory management bug fix & doc update #80

Merged
merged 3 commits into from
Mar 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/img/deepvm-mem-bins-fast-bins.drawio
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<mxfile host="Electron" modified="2020-09-28T03:44:27.316Z" agent="5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/13.7.3 Chrome/85.0.4183.98 Electron/10.1.2 Safari/537.36" etag="6evZ4g5T54WR0vcEAJjU" version="13.7.3" type="device"><diagram id="xZgESpvSb-MOfmQTAyCB" name="Page-1">7V1hc5s4EP01nmlvJjeAAOOPcdK0N9e0uabttZ86ik1sGmylGCdOf/0JjLCxhEEgCZFLZjI2ssDm7Vtp962AAThbbN5G8H5+iaZ+OLCM6WYAzgeWZTqegV+SlqesxQZg2zKLgmnWtmu4Dn77WWO242wdTP1VoWOMUBgH98XGCVou/UlcaINRhB6L3W5RWPzWezjzqYbrCQzp1n+DaTzPWk13tPvgnR/M5tlXe9Zw+8ECks7ZmazmcIoe95rAmwE4ixCKt+8WmzM/TNAjuGz3uyj5NP9hkb+M6+xwvn7/wfjn8zf088va+eJBABcnJ5a9PcwDDNfZGY9DNLnDTVfwKURwmv34+IkgEqH1cuonBzUGYPw4D2L/+h5Okk8fMQlw2zxehHjLxG/pH5n97gc/iv3NXlP2o9/6aOHH0RPuQihDAHzcw9/O2uZ70JujrBFmNp/lx9rBgt9kyHCg5JgUShdwFeOWFKzVwHJD/CPGNxF+N0vevbpewPS4l/4CpWez7fmaghOjEBcxW8URuv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BurVz4VwKgMTtaDWWU7WnmlcWLDdjhGYAEtS2Mv8ubRLeuN2BGxBI1BJI6UPqaSTTMvWDpzsMIyHeSvFis6ebENXrExGWVspWIw7+jmurmix9DGlaNHymKktWF1jRas9wNIVK9bNI9W6Ia1f2PrNfrlc1jVaFoWWq+102Pl82NENyxumzk2eMTlg5byMVKyYaR8LQqsXFZYoynLzavLc6zxmz4hUmlm37G8ZKnLxbu590UraEcI1tybXtjcCVM01YPBxJx/nGvZXw7Vu1vt3z7W6AqJZViqTTDabjzxg2K6/GrJ1s6q/e7KR+Ky6YlISOsklm8NJNudwrRRnfyVk41y7L+eBzlT4MDiMfB1W6OvKCn3rLNnXXtIG1VqkYlTp9EsC1biwqC1p574pWvwvuaqBVoxOH2AQpmduGZf+AiVf44bJmu+bCL+bJe9eJc84vklWib8Wx1dMzYv0j1mgPG5prpUf+YJ6RRjTStNFEK2SAfkaz58YKssYh2hyh19Pp9PIXyVr73sI8eYA3g4hpzX2C5giPg6WCbrZlMzk9R/4Pwcfv6b7G+mFERLsAdM/mfYAjMKtNHv8feXM5+efo9UH5+ti5MHQeL85oWe5T/4CBhiz6Jlx32LUS0RhjTcjhOL9sAyf8PwSTf2kx38=</diagram></mxfile>
<mxfile host="Electron" modified="2020-12-08T11:41:47.627Z" agent="5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/13.9.9 Chrome/85.0.4183.121 Electron/10.1.5 Safari/537.36" etag="4BTPaEoBBrHDkeYdNqDJ" version="13.9.9" type="device"><diagram id="xZgESpvSb-MOfmQTAyCB" name="Page-1">7V1dc5s4FP01nunuTHb4Nn6Mk6bd2abbbdpu+9RRDLFpsJVinNj99SswwsaSjQSSENlkJmMjA7bOPVe691wBA/tivn6TgIfZNQzCeGAZwXpgXw4syzQND71kLZuixTDsbcs0iYKibddwE/0K8Y5F6yoKwmVlxxTCOI0eqo0TuFiEk7TSBpIEPlV3u4Nx9VsfwDQkGm4mICZb/42C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wiGYHl1eOzS9D5gwaCmcmHRPrnpDgtSAfWebyWktLy+hRD8ZcLIeazL/SuD+Drf+PC0MTUugvhWPao8hDva576XQHzNVNfScPoKPX5HmisHNJrIPL5gxVWaF3Zd/PA101t9/eVWvyO1lQMaXbxQcGYgzQu7Lnv4oq9ia+uFjQJ7pdzCj+tQ7oXs0GjihSOTAOb/KTXj4aNWafZZhWY8e+qlM+tX7hiRvvlCwdMUHDJSEI+DelGw01IH/fEBzTMCcTfNPLgpFOXRgbbS527JvMZSzqMvGqUHakFlWU7G9eALYZf41j/4wrYkhb3UnpEu6Y/bEZAV0kYX8yp9OCWZZFqOduAUn1Ie4q0UKzJ7cgxdsTIpZW2lYFHu6Od6uqJF08eUokXKY6a2YHWNFan22JauWNFuHqnWDUn9wtFv9ivlsq7Rsgi0PG2nw87nw45uWN4wdW7yjEnSdpT7Qp+KOevXEOqRV+PnXZcxe0Gko5l1y/0tQ0Uu3s29L4RJO6xc8xi5hu/71zHXbIOPO+U413B/NVzrZr2/cq6x6oVl4NM12Rw+8tjDdvurIVs3q/qVkw2HY/UFEj2uB3E5yeYerpXi3F8J2Vqs3RemaJPhw+Aw8nVpoa8nK/RlWbKvl6R99JqA07V2taiS6Rcr1fj6LEHSLn1TtPh/5KoGUjE6fwRRnHfIMq7DOcy+xouzNd+3CXo3zd69yp5xfJutEv9NHF8RNa/yPw42Wkcsc5KN5YJ6RRiTStNVlCyzAfkGzZ8IKssYx3Byj17PgyAJl9na+x5CvD6At0PISY39CuSIj6NFhm4xJVN5/Tv6L8FHr/nxRn5hhAR7gPxPpj1sSuFWmj3++uDOZpefkuV798t85IPYeLc+I2e5j+EcRAiz5Jlx36LUS0RhjTYTCNP9sAx1eHYNgzDb4z8=</diagram></mxfile>
2 changes: 1 addition & 1 deletion doc/img/deepvm-mem-bins-fast-bins.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion doc/img/deepvm-mem-global-metadata.drawio
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<mxfile host="Electron" modified="2020-09-28T03:27:51.374Z" agent="5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/13.7.3 Chrome/85.0.4183.98 Electron/10.1.2 Safari/537.36" etag="jPi6ue-RCjcVry4RZ7Lx" version="13.7.3" type="device"><diagram id="xZgESpvSb-MOfmQTAyCB" name="Page-1">3Zhrb9owFIZ/DdI2iSn3wUcgvUy9rCtt136aTGISFydGjgOkv3524oSEJNCJS6Uitdivjx37OefYJh19FKwuKJj7N8SFuKMp7qqj2x1NMwyN/xdCIgVFzQSPIjeTSsIYvUEpKlKNkQujiiEjBDM0r4oOCUPosIoGKCXLqtmU4OpT58CDNWHsAFxX/yCX+VJVrf664RIiz5eP7mk/soYA5MZyJZEPXLIsSfpZRx9RQlhWClYjiAW7nEvW77yltZgYhSF7Twc7vr5Vfj88k9fH2HzsAR0E3a5mZMMsAI7lioeYODMu3YEEE+DKybMkJ0JJHLpQDKp09OHSRwyO58ARrUseAlzzWYB5TeXF+iTlvBeQMrgqSXLSF5AEkNGEm8iIUXOAyxJ/Q2p+Cb3alyKQPveKsdZYeEGS+Q9KplqjdIHJBIiON5ABFzBQ48SXx6owIkbJDI4IJpQrIQm55XCKMN6QAEZeyKsOhwa5PhSwEI/JgWwIkOuKxzTSr/rHBZGfVvb1xi76+rHga3priF7CfeOzTL+j6ZblOIpymLjtvTNsjQOA+/UWuLOXxWSkkBm1h1d2997q9mtooMv3NlkllPnEIyHAZ2t1I3jWNteEzCWyV8hYIjdqEDNSBcp50eRZ9k8rL6LyXVWLVntVbraTcu0OUsRXL6K+LXzFIlq3QClFJKaOtFraBkVP8SK4nP2d9H8M38DPQVfVTXmYAOpBtoVii5MpxIChRXUm+7hw+zTbdh7+ZTdtPvskAUg/h0kC46OTQKvxq7HyOKx5y8KKiwWY5OZKC5Y6g3wgS3bZwsRsOs96x4JSP84OF0DyDKskbvXgk/vsdFqEWAP2Mt52x24/po4GtSVXrRrWwQIgnIaOSNeAiMdYWFwLJpSXPFH60uONk4TB6OtB0/g8/TSm8dZM2Z3beWs1rNWGsNaPlOotDujVHHCOaMS4NOZHGeeoKfnVYeC6FEYRL30W/ubH8+/X+YMU/xCFAvWAUtCWAd/4X+EJ/p32VyzjQM45VRLoJ/TC1Z3p+/YDjW7Np6DfA1i5XjXs7fcwAIiTop86/PsnBN+4ALOG75TX7aKSXbfNHZftA9yrt0Vf+Va95UfdHtfqtKvcTwqDOUEhi0oj3wmhFDLmRraaG69MdtkrykaYZDNYB02xlKY44tX1657MfP3OTD/7Bw==</diagram></mxfile>
<mxfile host="Electron" modified="2020-12-08T12:40:06.536Z" agent="5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/13.9.9 Chrome/85.0.4183.121 Electron/10.1.5 Safari/537.36" etag="qcaBYeOD9xf9247DbSqG" version="13.9.9" type="device"><diagram id="xZgESpvSb-MOfmQTAyCB" name="Page-1">3Vhpb+IwEP01SLsrUZmEBPjI2a56bLf0/LQysUlcnBg55gi/fm3iQEICBRWKVKQW+3l8vXkzHlEy2/78ksOxd8sQpiUDoHnJ7JQMwzYN+V8BUQxYNTMGXE5QDFXWQJ8ssAaBRicE4TBjKBijgoyzoMOCADsig0HO2SxrNmQ0u+sYujgH9B1I8+gLQcLTaMVurAeuMHE9vXXdqMUDPkyM9U1CDyI2S0Fmt2S2OWMibvnzNqaKu4SXeF5vy+jqYBwHYp8JncnNHfj7+MrenybWUx2a0C+XjWq8zBTSib5xizJnJKF7GFEGkT68iBJGOJsECKtFQclszTwicH8MHTU6kxKQmCd8KnsV2cwfUp97irnA8xSkD32JmY8Fj6SJVkwlIXCW4r+qMS9FfaWhQah97q7WWtMiG5qZA1iyKjmWLikbQDXxFguIoIA5nuT1RJaMUHA2wm1GGZdIwAJp2RoSSjcgSIkbyK4jScMSbymyiNRkUw/4BCG1TSH7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