同步操作将从 OpenHarmony/commonlibrary_memory_utils 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
The part of Memory base libraries belongs to the subsystem named Utils Subsystem. It provides the system library for upper-layer services to operate memory, ensuring the stability of upper-layer services.
Figure 1 Memory Base Libraries architecture
Memory Base Libraries | User |
---|---|
libdmabufheap | multimedia service |
libmeminfo | memory manager service |
libmemleak | memory manager service |
libpurgeable | graphic service (planning) |
libspeculative | system service (planning) |
/utils/memory
├── libdmabufheap # DMA (Direct Memory Access) memory allocation system library
│ ├── include # DMA memory allocation system library header directory
│ ├── src # DMA memory allocation system library source directory
│ └── test # DMA memory allocation system library usecase directory
├── libmeminfo # Memory footprint management library
├── libmemleak # Memory leak detection library
├── libpurgeable # Purgeable memory management library
└── libspeculative # Speculative memory management library
Memory base libraries is a component of the system library that integrates memory operations and manages them in a unified manner.
The memory system library provides interfaces for the multimedia service to allocate and share shared memory. By allocating and sharing memory between hardware devices and user space, zero-copy memory between devices and processes is implemented to improve execution efficiency.
It provides interfaces for memory usage queries. It is used for memory footprint query, low memory killing and other scenarios.
It cooperates with malloc_debug to detect memory leaks of native heap.
It provides management interfaces for discardable-type memory.
It provides management interfaces for speculative-type memory. It is mainly used by system services for data pre-loading.
System developers can add or remove this part by configuring the product definition JSON file under /productdefine/common/products to enable or disable this part:
"utils:utils_memory":{}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。