ptitSeb
1387363a7b
Fix/compile not in memory ( #3573 )
...
* Example of allocated artifact
* Better error when Instancing fail because of OS/Arch issue
* Add missing brnach for new error
---------
Co-authored-by: Syrus Akbary <me@syrusakbary.com >
2023-02-06 10:28:39 +01:00
Johnathan Sharratt
9bc44d49a2
Many performance and memory optimizations
...
- Avoiding a memory copy on all socket reads and writes using a new `copy_from_slice` instead
- File openers no longer box the implementation avoiding a memory allocation on all file access
- Polling sockets rather than using an async function which significantly reduces locking contention and removes an box operation
- Futex now uses wakers rather than broadcasts which makes them more efficient and durable
- Converted many async functions into sync functions in vnet
- Sleeping no longer allocates memory
- Avoiding a number of WasiEnv clones which was impacting performance and memory efficiency
2023-02-05 10:16:41 +11:00
Syrus Akbary
42fd09bcfb
Move tunables into engine
2023-01-30 20:18:22 +01:00
Christoph Herzog
932cd7849b
fix: Add missing import
...
Always required now , not just when the compiler feature is on.
2023-01-30 16:42:41 +01:00
Christoph Herzog
42f58d0c98
Merge remote-tracking branch 'origin/master' into wasix
2023-01-28 08:30:02 +01:00
Syrus Akbary
d09a76ec5f
Use standard API for js and sys for Module. Added Engine in js
2023-01-27 17:10:54 +01:00
Syrus Akbary
423ca7a9f5
Remove setting memory for WASI compatibility
2023-01-26 17:00:48 +01:00
Syrus Akbary
26bde698e4
Merge pull request #3490 from nicolas-albert/patch-1
...
Fix JS sample code by adding "&mut store"
2023-01-26 15:58:05 +01:00
Syrus Akbary
6707e67d9e
Remove deprecated Export type. Updated structure to use VMExtern
2023-01-26 13:25:08 +01:00
Syrus Akbary
d59f4c2ffd
Use JS VM store instead of artificially replicate it
2023-01-25 19:41:39 +01:00
Christoph Herzog
1f43832131
Merge remote-tracking branch 'origin/master' into wasix
2023-01-25 17:32:42 +01:00
ptitSeb
420cde0224
Merge branch 'master' into fix_instancehandle_memoryleak
2023-01-25 14:19:19 +01:00
ptitSeb
0dc0ce1f0d
Renamed InstanceHandle to VMinstance, and InstanceAllocator::write_instance to into_vminstance
2023-01-25 12:06:09 +01:00
Christoph Herzog
d1bae195b3
Merge remote-tracking branch 'origin/master' into wasix
2023-01-23 22:00:16 +01:00
Christoph Herzog
902670a721
Restore changes from master
...
Align with master on two changes which were probably accidentally
screwed up during a merge or rebase.
2023-01-19 18:19:57 +01:00
Felix Schütt
fd5962dd66
Revert "Fix make lint"
...
This reverts commit e2755b7107 .
2023-01-19 09:23:10 +01:00
Felix Schütt
caeca9a7a8
Revert error message text
2023-01-18 15:33:36 +01:00
Felix Schütt
9c052489ff
Revert changes to Store::default and remove Store::headless again
2023-01-18 12:28:21 +01:00
Felix Schütt
a70a4922ad
Fix feature flags and misleading error message
2023-01-18 12:21:16 +01:00
Albert Nicolas
7ab9eb233e
Fix JS sample code by adding "&mut store"
...
`Instance::new` and `.call` need `&mut store` as first argument in order to compile.
2023-01-18 10:50:46 +01:00
Felix Schütt
e2755b7107
Fix make lint
2023-01-17 21:07:09 +01:00
Christoph Herzog
7e1e9fa06b
Merge remote-tracking branch 'origin/master' into wasix
2023-01-17 00:42:54 +01:00
Christoph Herzog
e9edb7e8e6
chore; Add some explanatory comments on allow(unused_unsafe) annotations
2023-01-17 00:20:36 +01:00
Christoph Herzog
394cf83651
chore: Remove unused import
2023-01-16 16:46:56 +01:00
ptitSeb
87eb05d6d6
Merge branch 'master' into wasix-core-changes
2023-01-16 09:39:08 +01:00
Christoph Herzog
8ca8db8134
Merge remote-tracking branch 'origin/master' into wasix
2023-01-13 09:48:40 +01:00
Michael Bryan
19b2efdc7f
Remove an unneeded comment.
2023-01-12 21:36:54 +08:00
Syrus Akbary
382ed04be2
Added support for Wasm Module custom sections in js
2023-01-12 11:05:22 +00:00
ptitSeb
26b43fee27
Merge branch 'master' into wasix-core-changes
2023-01-05 21:32:17 +01:00
ptitSeb
60d1fcf46f
Fixed linter
2023-01-05 10:25:12 +01:00
ptitSeb
b126849c34
Added one more TODO, about the imported/exported memory hack on js
2023-01-05 09:57:29 +01:00
ptitSeb
8d7190b8db
Changed TODO mark about asyncify
2023-01-05 09:24:36 +01:00
ptitSeb
212f836e30
Missed some sources to add a TODO mark about asynctify
2023-01-04 18:21:17 +01:00
ptitSeb
a050376636
[JS] Rmoved js-serializable-module feature from wasm-types-polyfill
2023-01-04 18:02:18 +01:00
ptitSeb
332ad85e94
Added TODO on asynctify code, linking to ticket #3451
2023-01-03 14:07:16 +01:00
ptitSeb
9f7822d33e
Rename js::Instance::check_memory to ensure_memory_export
2023-01-02 16:24:49 +01:00
ptitSeb
bf2f855d3b
Split js::Instance::from_module_and_instance externs/memory tests in a separate function
2023-01-02 16:04:06 +01:00
Christoph Herzog
9c0da24d2e
Merge remote-tracking branch 'origin/master' into wasix
2023-01-02 09:33:31 +01:00
Christoph Herzog
239f94bee8
Cleanup: remove unused function and import
2022-12-29 11:32:59 +01:00
Christoph Herzog
ff886d5a94
Merge branch 'wasix-core-changes' into wasix
2022-12-29 11:32:01 +01:00
Felix Schütt
994ea4574d
Merge branch 'master' into multi-command-exe
2022-12-29 10:09:01 +01:00
Christoph Herzog
4f2948caa0
Add iter_globals and set_global_unchecked to js Store
...
Was previously added to the sys Store as well.
Needed for snapshotting / thread spawning in wasix.
2022-12-28 14:56:33 +01:00
Christoph Herzog
99304226a8
Remove unused static ON_CALLED
...
Leftover from previous implementation.
2022-12-28 11:48:51 +01:00
Christoph Herzog
6c7f84cf4f
Fix various commits that broke js builds
2022-12-27 16:45:18 +01:00
Christoph Herzog
9a8b2cbd84
Revert "Updated Module::deserialize_from_file"
...
This reverts commit 86c9cf15a4 .
2022-12-27 16:34:25 +01:00
Christoph Herzog
dc743dc65d
Revert "Module.deserialize - accept AsEngineRef"
...
This reverts commit 70ca66f803 .
2022-12-27 16:22:31 +01:00
Christoph Herzog
a6fa558e8a
Merge branch 'wasix-core-changes' into wasix
2022-12-27 15:08:37 +01:00
Christoph Herzog
fff72e4fda
Merge remote-tracking branch 'origin/master' into wasix-core-changes
2022-12-27 15:05:40 +01:00
Christoph Herzog
af164229cc
Remove un-needed is_ok() methods
...
No longer required, module sharing now works properly
2022-12-22 18:52:30 +01:00
Christoph Herzog
019ea5fee2
chore: Remove allow attribute
...
Duplicated...
2022-12-22 13:34:57 +01:00