Skip to content

Conversation

@oleg-derevenetz
Copy link
Contributor

Currently it is impossible to use kb/mb/gb for ASYNCIFY_STACK_SIZE, although, in theory, it should work.

Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

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

lgtm! Maybe we should add a test though?

@oleg-derevenetz
Copy link
Contributor Author

Hi @sbc100

lgtm! Maybe we should add a test though?

Unfortunately, I'm not familiar with your test infrastructure. Is there any specific place where such a test should be added? I have not yet been able to find a place where these size suffixes would be tested at all.

@sbc100
Copy link
Collaborator

sbc100 commented Jan 9, 2025

How about adding self.set_setting('ASYNCIFY_STACK_SIZE', ['64kb']) to test_asyncify_advise in test/test_other.py, perhaps with a comment that this just to test that size can be specified in kb?

@oleg-derevenetz
Copy link
Contributor Author

How about adding self.set_setting('ASYNCIFY_STACK_SIZE', ['64kb']) to test_asyncify_advise in test/test_other.py, perhaps with a comment that this just to test that size can be specified in kb?

Sure, thank you!

'MAXIMUM_MEMORY',
'DEFAULT_PTHREAD_STACK_SIZE'
'DEFAULT_PTHREAD_STACK_SIZE',
'ASYNCIFY_STACK_SIZE'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a trailing comma here so future additions can just be single line change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, done.

@sbc100 sbc100 enabled auto-merge (squash) January 9, 2025 19:35
@sbc100 sbc100 merged commit dde19fa into emscripten-core:main Jan 9, 2025
29 checks passed
@oleg-derevenetz oleg-derevenetz deleted the asyncify_stack_size-mem_base_settings branch January 9, 2025 20:24
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.

2 participants