]> begriffs open source - freertos/commit
Move size calculation out of critical section (#748)
authorMoral-Hao <sihunzhilei@126.com>
Wed, 16 Aug 2023 16:01:17 +0000 (00:01 +0800)
committerGitHub <noreply@github.com>
Wed, 16 Aug 2023 16:01:17 +0000 (21:31 +0530)
commitbcd6dbd77293596e3bd69cae68f8b3b3de9f5d4d
tree839c74bd9f547d1e0fe073f88aee27662e87ad2b
parent6f3586516a42f556db04ae8c1f9394ef9f7e78c5
Move size calculation out of critical section (#748)

The size calculation in pvPortMalloc uses only parameters and read
only constants and therefore, can be moved out of critical section
to make the critical section as small as possible.
portable/MemMang/heap_2.c
portable/MemMang/heap_4.c
portable/MemMang/heap_5.c