InfiniTimeOrg / InfiniTimeOrg/InfiniSim

Free memory budget is wrong

Open
#128 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
203
Forks
97
PR merge metrics
No merged PRs in 30d

Description

The memory budget displayed when pressing p is wrong.
It overestimates the free space left by a substantial amount (I think around 15000).
I am pretty sure this comes from not considering FreeRTOS tasks getting their stack allocated on the heap on creation, now that the heaps were unified.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the p key path that displays the memory budget, then inspect how FreeRTOS task stacks are allocated after the heaps were unified. Confirm the accounting against the actual free heap, including task stacks, and verify that the displayed budget no longer overestimates available space.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.