Comments (3)
Adjacent free memory blocks are merged together during a subsequent allocation search for a large enough free memory block. This process is called defragmentation.
https://learn.microsoft.com/en-us/azure/rtos/threadx/chapter3#memory-byte-pools
from threadx.
As @xray-bit says, the defragmentation happens upon allocation scheme and not free scheme.
This is because in free time there is no need to waste time to look on other blocks, while in allocation time we anyway go block after block to find one that is big enough so meanwhile we also merge consecutive free blocks till we find big enough block and stop.
from threadx.
OK, thanks for your reply.
from threadx.
Related Issues (20)
- Threadx on Microblaze soft processor HOT 1
- Why EPK kit is not supported in ThreadX release 6.3.0? HOT 1
- on riscv arch๏ผ does the user creat thread code run on machine mode
- Is it possible to provide Cortex-M code in ports_smp? HOT 1
- Is it possible to register a notification callback when using tx_trace_user_event_insert? HOT 1
- Register RA will be modified when TX_ENABLE_EXECUTION_CHANGE_NOTIFY is enabled HOT 1
- Potentially missing null check for thread pointer in _tx_mutex_get() HOT 1
- __tx_ts_wait will loop forever (threadx-6.2.1_rel\ports\cortex_m33\gnu\src\tx_thread_schedule.S) HOT 1
- Repeating error codes in common/inc/tx_api.h HOT 6
- tx_thread_smp_protect HOT 5
- on riscv32, Does flow situation use right?
- _tx_semaphore_created_ptr is always NULL HOT 3
- The interrupt vector table offset register should not be set.
- How to include threadx in the project via CMake system? HOT 2
- Dose threadx module has 'who am I' utility?
- Certification Package for Eclipse ThreadX HOT 2
- ULONG == uint32_t in 64-bit system cause problem HOT 1
- Fix CMake minimum require version warning
- Cortex-M7 : Is _tx_thread_context_save/_tx_thread_context_restore required in interrupts? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from threadx.