Skip to content

Improve Linux shutdown, memory handling, and messaging integration#78

Merged
kr-t merged 1 commit intomainfrom
features/updates
Sep 1, 2025
Merged

Improve Linux shutdown, memory handling, and messaging integration#78
kr-t merged 1 commit intomainfrom
features/updates

Conversation

@kr-t
Copy link
Collaborator

@kr-t kr-t commented Sep 1, 2025

Description

  • Fixed shutdown behavior on Linux systems to ensure proper termination
  • Placed WAMR heap in external RAM when enabled for better memory management
  • Added validity checks before accessing module parameters to prevent crashes
  • Included ocre_common.h when messaging is defined to support conditional compilation

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

Multiple containers both on Linux and U585 from ocre-sdk

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

- Fixed shutdown behavior on Linux systems to ensure proper termination
- Placed WAMR heap in external RAM when enabled for better memory management
- Added validity checks before accessing module parameters to prevent crashes
- Included `ocre_common.h` when messaging is defined to support conditional compilation

Co-authored-by: Dan Kouba <dan@atym.io>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
@kr-t kr-t requested a review from srberard as a code owner September 1, 2025 12:02
@kr-t kr-t self-assigned this Sep 1, 2025
@kr-t
Copy link
Collaborator Author

kr-t commented Sep 1, 2025

From https://github.com/project-ocre/ocre-runtime/actions/runs/17377009133/job/49325509071?pr=78#step:8:658 :

Memory region         Used Size  Region Size  %age Used
           FLASH:      443956 B         2 MB     21.17%
             RAM:      173736 B       768 KB     22.09%
           PSRAM:          8 MB         8 MB    100.00%
          EXTMEM:          0 GB        64 MB      0.00%
        IDT_LIST:          0 GB        32 KB      0.00%

8 Megs!

@kr-t kr-t merged commit 5181deb into main Sep 1, 2025
6 checks passed
@kr-t kr-t deleted the features/updates branch September 1, 2025 15:07
dkouba-atym pushed a commit that referenced this pull request Oct 21, 2025
* Fix deadlock in CS_destroy_container by calling CS_stop_container before mutex lock. (#244)

---------

Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Co-authored-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
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