You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, it would be nice to fix this implementation, but that is an API change. Internally, the code should support any block size up to size_t , but with a historical int32 return type that returns the size this is limited to 2GB in practice. Which is still beyond what is typically needed - in our test configurations it only goes up to 80k bytes - so 2GB is still far above what is typically used here.
Ideally we should note in the user guide and/or release notes that pools (currently) should not exceed 2GB in size. Maybe in a future cFE we can fix the rest of the APIs. But most flight hardware doesn't even have 2GB of RAM total, so I doubt any users will have an issue with that.
Corrects the return type documentation, on success this function
returns the size of the buffer, it does not return CFE_SUCCESS.
Additionally, this updates the general description of the pool
implementation to reflect the variances in platform architectures
(i.e. the buffer descriptor/overhead may be 12 bytes on a CPU
with 32 bit size_t, but will be greater on a CPU with a 64 bit
size_t).
Corrects the return type documentation, on success this function
returns the size of the buffer, it does not return CFE_SUCCESS.
Additionally, this updates the general description of the pool
implementation to reflect the variances in platform architectures
(i.e. the buffer descriptor/overhead may be 12 bytes on a CPU
with 32 bit size_t, but will be greater on a CPU with a 64 bit
size_t).
Describe the bug
The return in the header says it returns Execution status but it actually returns the buffer size or error code.
Expected behavior
Header file should be changed to match the implementation.
Additional context
The code that does this has a comment saying it's not workable so we could also change the implementation
cFE/modules/es/fsw/src/cfe_es_mempool.c
Lines 541 to 550 in 176e3df
Reporter Info
Alex Campbell GSFC
The text was updated successfully, but these errors were encountered: