internal.h中,漏掉了1个定义。
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 95/100
Research direction
The issue is in mimalloc/include/mimalloc/internal.h. Locate the function declaration for _mi_theap_malloc_zero and add the mi_decl_restrict qualifier before void* as shown. Verify the change by checking the file's consistency and running any existing tests for the header.
Written by the indexing model from the issue text.
Description
mimalloc\include\mimalloc\internal.h
文件中,漏掉了1个定义。
在
void* _mi_theap_malloc_zero(mi_theap_t* theap, size_t size, bool zero, size_t huge_alignment, mi_page_t** ppage) mi_attr_noexcept;
前面添加 mi_decl_restrict 。
例如:
mi_decl_restrict void* _mi_theap_malloc_zero(mi_theap_t* theap, size_t size, bool zero, size_t huge_alignment, mi_page_t** ppage) mi_attr_noexcept;
- Dominant language
- C
- Stars
- 13.4k
- Forks
- 1.2k
- Avg merge
- 4d 45m
- Merged PRs (30d)
- 13
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/mimalloc
-
Mimalloc arena `mi_heap_malloc_aligned` has a hidden limit on max alignment of 64 KiB per allocation Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
stale
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
All issues in microsoft/mimalloc
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
duckdb/duckdb-wasm#2258 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
rofl0r/microsocks#110 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
espressif/esp-aws-iot#261 ·
-
os:linux
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
mpv-player/mpv#18510 · 2 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100