-
Notifications
You must be signed in to change notification settings - Fork 3.4k
NO_EXIT_RUNTIME by default #5878
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
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
17ef4e3
NO_EXIT_RUNTIME=1 by default: avoid including runtime shutdown overhe…
kripken f3eb364
fixes
kripken 1106aed
more tests
kripken 05f07be
fixes
kripken 3d623eb
bonus: the new default of NO_EXIT_RUNTIME=1 is the common case on the…
kripken 7ca10a1
fix
kripken ac6a066
fix
kripken fa0f631
docs
kripken 9e299c5
fix
kripken 890c5ea
fix
kripken bc3abe8
fix FORCE_FILESYSTEM: it actually never had any code to make it work …
kripken 1655df2
fix
kripken 268a781
fixes
kripken 1da0890
fix
kripken b80bdf7
fix
kripken 0f6e8fa
fix
kripken 2672778
better test
kripken 49a5234
fixes
kripken b8daf47
fixes
kripken ce7b4f4
warn on exitin with a non-zero code when NO_EXIT_RUNTIME (as then we …
kripken 15a7083
fixes
kripken 1af3ea8
if we exit with a non-zero code, emit it even if NO_EXIT_RUNTIME (use…
kripken 04ce11d
fixes
kripken 6ac52fb
fix flush assertion for c++ code, add testing
kripken 748f2eb
fixes
kripken d2c4f19
Merge remote-tracking branch 'origin/incoming' into no-exit-runtime
kripken 0611661
update Changelog
kripken 096f7ec
fix
kripken e040af1
fix browser.test_asm_swapping
kripken 39ef944
fix browser.test_emterpreter_async_sleep2_safeheap
kripken e6e1bc4
fixes
kripken f04b0cd
always exit pthreads: if we do not, the main thread simply hangs on t…
kripken 5e81d11
emrun sets NO_EXIT_RUNTIME=0. it is a mode where we specifically want…
kripken 43401c9
Merge remote-tracking branch 'origin/incoming' into no-exit-runtime
kripken 72e7255
add faq entry, and mention the faq
kripken 4dc9381
explain flushing check
kripken 6bf8d53
fix an existing emterpreter-async bug: if we are unwinding the stack …
kripken 195a99c
improve text
kripken 04c3a9a
Merge remote-tracking branch 'origin/incoming' into no-exit-runtime
kripken be26e6b
warn on calling emscripten_force_exit when NO_EXIT_RUNTIME
kripken f6167e7
whitespace
kripken f8dadc6
Merge branch 'incoming' into no-exit-runtime
kripken 9821ad7
Merge branch 'incoming' into no-exit-runtime
kripken 9aa1ddb
metadce is now more effective, update test
kripken 66345ff
faq entry on Module.* is not a function [ci skip]
kripken 7d5e86c
Merge branch 'followups' into no-exit-runtime
kripken 83059d2
improve message
kripken 4299787
fix browser.test_emscripten_main_loop - the pthreads part needs the r…
kripken File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite understand why we are doing this dance with module.print. If it's ok to just call the users's
fflush
, why can't we just call it and let it flush for real?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't normally even include
fflush
anymore, we only include it inASSERTIONS
builds. So we don't want to show the proper output here, we want to see if there would be a problem, had we not been in anASSERTIONS
build. So we just check if flushing would have emitting something (and we do so very carefully, as shutting down the FS may throw an error if it hit an error previously or something like that).I can add more of an explanation to the code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading that again it does seem less than obvious, good point. Added a comment.