Skip to content

Conversation

@csegarragonz
Copy link
Collaborator

@csegarragonz csegarragonz commented Feb 8, 2023

In this PR I bump the cpp and python dependencie's to make our sysroot use the latest version of wasi-libc.

The changes here are just small fixes of problems that arised as a consequence of the merge. Most importantly, WASM's new command/reactor model defines as undefined behaviour calling twice the _start symbol of the same module instance. Equivalently, this means that WASM leaves the instance in an unusable state after execution. This helped catch a bug in threaded execution in faabric.

See faasm/cpp#109


WasmModule::~WasmModule() {}

void WasmModule::flush() {}
Copy link
Collaborator Author

@csegarragonz csegarragonz Feb 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This diff is very convoluted and hard to read. See here for the file and search for FAASM_HAS_WASM_MMAN.

The reason is that I wanted to conditionally compile the memory-management-related functions (similarly to what I do in include/wasm/WasmModule.h). However, I realised that the function definitions where not groupped in the same way that we declare them in the header file, so I re-arrange them to be so.

If preferred, I can just surgically conditionally compile the functions across this file and undo the re-ordering.

I am also aware that defining functions in the order we declare them is not something we enforce, but I still think is a nice-to-have.

@csegarragonz csegarragonz force-pushed the latest-libc branch 3 times, most recently from 346c274 to e46740b Compare February 23, 2023 11:59
@csegarragonz csegarragonz merged commit e8f9852 into main Feb 27, 2023
@csegarragonz csegarragonz deleted the latest-libc branch February 27, 2023 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants