Comments (4)
- ffs() and ffsl() are defined for MinGW in include/msvc_compat/strings.h. I don't see any evidence of build system regression that would cause that header to be missed by #include <strings.h>. Is there something unusual about the environment you have specified when calling the configure script?
- Initialization of init_lock is taken care of in _init_init_lock(), which has the constructor attribute, and therefore gets run prior to malloc_init_hard(). What is the nature of the error you're seeing?
- All of the %z format specifiers are either %zu or %zd, so I'm not sure what %z/size_t mismatch you're referring to.
I don't have a Windows environment set up, and Microsoft makes it so difficult/expensive that I'm not likely to do so in time for the 3.5.0 release. If you need help developing fixes, you might try engaging others who use jemalloc with MinGW on the jemalloc-discuss mailing list.
from jemalloc.
No thanks, I fixed these errors and jemalloc is working fine. I just want to report these errors maybe someone want to fix it.
I don't want to commit my code, because I just hacked the code instead of fixing these errors. So my patches can ruin the code on other platforms. I don't know how to fix it properly.
- configure is not included include/msvc_compat/strings.h. I think this header is inlcuding only under VS.
- InitializeCriticalSection() or InitializeCriticalSectionAndSpinCount() must call before EnterCriticalSection() called, but in malloc_init_hard() is not fulfilled.
- you right, %zu or %zd has been changed to %u and %d.
You can close this issue there are not many people who want to use it under mingw.
from jemalloc.
Maybe this line in configure.ac should be executed for all MinGW builds:
CPPFLAGS="$CPPFLAGS -I${srcroot}/include/msvc_compat"
I'm going to leave this issue open until someone is able to evaluate what fixes are actually necessary to support both MSVC and gcc under MinGW. Thank you for the report.
from jemalloc.
These issues have all been fixed now, via the addition of jemalloc_ffs()
and PRIzu
/PRIzd
/PRIzx
.
from jemalloc.
Related Issues (20)
- jemalloc can't build when `CFLAGS`/`CXXFLAGS` contain `-I` options pointing to a prefix with an existing install of jemalloc
- is mallctl `arena.<i>.purge` non-thread-safe? HOT 2
- SEGV in edata_list_inactive_remove() HOT 2
- JEMalloc on ARM uses 10x more VIRT than the same work on Intel..? HOT 7
- [question] Obtaining accurate code coverage
- [Question] python based gdb script for core dump analysis
- Download github source code and. /autogen.sh then make: make: *** [src/jemalloc.sym.o] Error 1 HOT 1
- An infinite loop occurs in the je_extent_heap_first function. As a result, the process is suspended. HOT 4
- Active memory not released immediately HOT 1
- 【question】A question about jeprof memory comparison
- DeadLock while allocating the memory(Version: 5.2.0) HOT 1
- Make `--with-lg-page=16` the default option on ARM64 architecture HOT 6
- Segmentation fault while setting hiredis.hiredisAllocFuncs by je_malloc HOT 2
- Provide way to toggle THP at runtime before first allocation HOT 2
- aligned_alloc is UB when it should not be
- dnl: not found, How to deal with it?
- Microbenchmark uses wrong timebase on some Darwin systems
- Jemalloc thread cache question HOT 1
- Changing the default to 16 KB for Android. HOT 2
- Segmentation fault when hiding symbols of my shared library (.so) HOT 2
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 jemalloc.