Comments (5)
Good to hear! -- I'll look into doing efficient thread id detection on ARM (any pointers are appreciated).
from mimalloc.
Ah, never tried building on ARM yet. I just pushed a possible fix to master -- can you try that?
Beyond that, the code at:
https://github.com/microsoft/mimalloc/blob/master/include/mimalloc-internal.h#L288
uses special casing to efficiently get a thread unique id. I am sure ARM will have this too and it we should add such case (for best performance).
from mimalloc.
Thanks for the amazingly fast reply; the compile error moves on:
Scanning dependencies of target mimalloc-static
[ 4%] Building C object CMakeFiles/mimalloc-static.dir/src/stats.c.o
In file included from /home/jrh/Projects/mimalloc/src/stats.c:8:
/home/jrh/Projects/mimalloc/include/mimalloc-internal.h: In function ‘mi_get_default_heap’:
/home/jrh/Projects/mimalloc/include/mimalloc-internal.h:156:10: error: ‘_mi_’ undeclared (first use in this function); did you mean ‘_mi_bsr’?
return _mi_
^~~~
_mi_bsr
/home/jrh/Projects/mimalloc/include/mimalloc-internal.h:156:10: note: each undeclared identifier is reported only once for each function it appears in
/home/jrh/Projects/mimalloc/include/mimalloc-internal.h:156:14: error: expected ‘;’ before ‘ault’
return _mi_
^
;
ault;
~~~~
make[2]: *** [CMakeFiles/mimalloc-static.dir/build.make:63: CMakeFiles/mimalloc-static.dir/src/stats.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73:
from mimalloc.
Argh, accidental mistake in the fix. Can you try again?
(and from now I will switch to the dev branch for quick fixes :-) )
from mimalloc.
Building (and running) --- thanks.
from mimalloc.
Related Issues (20)
- Call mi_heap_destroy from another thread
- getting an assertion error in Koka
- Feature Request: Support AArch64 MTE
- Feedback on mimalloc 2.X
- mi_is_in_heap_region asserting in debug HOT 2
- Override malloc in dynamically loaded dll on Windows
- Mimalloc attempts to allocate 33 MB shortly after thread start, prints spurious warning when it fails
- Any way to know how much memory was freed but not yet purged?
- The performance of mimalloc is unexpectedly lower than that of the system's built-in allocator. HOT 3
- Use MADV_FREE in FreeBSD HOT 3
- mimalloc.cmake has hard-coded paths
- Shutdown issues using heap bound to arena, `mi_collect`
- What interface is redirected _expand_base
- mi_malloc didn't return NULL while no memory available
- Multiple debug print statements and hugepages mapped HOT 1
- When will release the next version?
- Why is `mimalloc-redirect` closed-source? HOT 1
- Unused variable from heap alloc code
- Crash on start on OSX with v2.0.9 HOT 1
- "mimalloc-obj" is not in any export set
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 mimalloc.