-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Increase stack size in malloc test for Cortex-A #3362
Conversation
Increase the stack size used in the malloc test to prevent stack overflows on Cortex-A devices.
/morph test-nightly |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
There is no problem about this change. |
@@ -7,7 +7,11 @@ | |||
#endif | |||
|
|||
#define NUM_THREADS 5 | |||
#if defined(__CORTEX_A9) | |||
#define THREAD_STACK_SIZE DEFAULT_STACK_SIZE |
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.
whats the difference between DEFAULT_STACK_SIZE
and 256 ?
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.
Cortex-A in general will require more stack space than Cortex-M.
Therefore it is necessary to divide the definition by "#ifdef" as same as other test. By using its value CI test sequece is carried out.
For example:
TESTS\mbedmicro-rtos-mbed\basic\main.cpp
In Cortex-A, DEFAULT_STACK_SIZE is 2048 byte. Maybe in Cortex-M, it is 256Byte.
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 just wondered if that macro should not be DEFAULT_STACK_SIZE for any cortex. Russ, what do you think?
* [RZ/A1H]Support RTX v4.80 for Cortex-A and a few Malloc API PR to update RTX to v4.80 for Cortex-A. In the latest CI test, three tests result in an error. The cause is mainly three points - Unsupport RTX v4.80 for Cortex-A - Insufficient stack size of thread defined in test - A few Lack of Malloc API in GCC Therefore, I supported to these. For the stack size for test, @russ already supported in PR #3362. Reference for issue of test error is here. #3273 Reference for PR to update RTX for Cortex-M. #1702 * Revert "[RZ/A1H]Support RTX v4.80 for Cortex-A and a few Malloc API" This reverts commit e71f79a. * [RZ/A1H]Support RTX v4.80 for Cortex-A and a few Malloc API PR to update RTX to v4.80 for Cortex-A. In the latest CI test, three tests result in an error. The cause is mainly three points - Unsupport RTX v4.80 for Cortex-A - Insufficient stack size of thread defined in test - A few Lack of Malloc API in GCC Therefore, I supported to these. For the stack size for test, @c1728p9 already supported in PR #3362. Reference for issue of test error is here. #3273 Reference for PR to update RTX for Cortex-M. #1702
PR to update RTX to v4.80 for Cortex-A. In the latest CI test, three tests result in an error. The cause is mainly three points - Unsupport RTX v4.80 for Cortex-A - Insufficient stack size of thread defined in test - A few Lack of Malloc API in GCC Therefore, I supported to these. For the stack size for test, @russ already supported in PR #3362. Reference for issue of test error is here. #3273 Reference for PR to update RTX for Cortex-M. #1702
PR to update RTX to v4.80 for Cortex-A. In the latest CI test, three tests result in an error. The cause is mainly three points - Unsupport RTX v4.80 for Cortex-A - Insufficient stack size of thread defined in test - A few Lack of Malloc API in GCC Therefore, I supported to these. For the stack size for test, @c1728p9 already supported in PR #3362. Reference for issue of test error is here. #3273 Reference for PR to update RTX for Cortex-M. #1702
…3470) * [RZ/A1H]Support RTX v4.80 for Cortex-A and a few Malloc API PR to update RTX to v4.80 for Cortex-A. In the latest CI test, three tests result in an error. The cause is mainly three points - Unsupport RTX v4.80 for Cortex-A - Insufficient stack size of thread defined in test - A few Lack of Malloc API in GCC Therefore, I supported to these. For the stack size for test, @russ already supported in PR ARMmbed#3362. Reference for issue of test error is here. ARMmbed#3273 Reference for PR to update RTX for Cortex-M. ARMmbed#1702 * Revert "[RZ/A1H]Support RTX v4.80 for Cortex-A and a few Malloc API" This reverts commit e71f79a. * [RZ/A1H]Support RTX v4.80 for Cortex-A and a few Malloc API PR to update RTX to v4.80 for Cortex-A. In the latest CI test, three tests result in an error. The cause is mainly three points - Unsupport RTX v4.80 for Cortex-A - Insufficient stack size of thread defined in test - A few Lack of Malloc API in GCC Therefore, I supported to these. For the stack size for test, @c1728p9 already supported in PR ARMmbed#3362. Reference for issue of test error is here. ARMmbed#3273 Reference for PR to update RTX for Cortex-M. ARMmbed#1702
* [RZ/A1H]Support RTX v4.80 for Cortex-A and a few Malloc API PR to update RTX to v4.80 for Cortex-A. In the latest CI test, three tests result in an error. The cause is mainly three points - Unsupport RTX v4.80 for Cortex-A - Insufficient stack size of thread defined in test - A few Lack of Malloc API in GCC Therefore, I supported to these. For the stack size for test, @russ already supported in PR #3362. Reference for issue of test error is here. #3273 Reference for PR to update RTX for Cortex-M. #1702 * Revert "[RZ/A1H]Support RTX v4.80 for Cortex-A and a few Malloc API" This reverts commit e71f79a. * [RZ/A1H]Support RTX v4.80 for Cortex-A and a few Malloc API PR to update RTX to v4.80 for Cortex-A. In the latest CI test, three tests result in an error. The cause is mainly three points - Unsupport RTX v4.80 for Cortex-A - Insufficient stack size of thread defined in test - A few Lack of Malloc API in GCC Therefore, I supported to these. For the stack size for test, @c1728p9 already supported in PR #3362. Reference for issue of test error is here. #3273 Reference for PR to update RTX for Cortex-M. #1702
Increase the stack size used in the malloc test to prevent stack overflows on Cortex-A devices.