Comments (4)
I can't reproduce it on master (Linux, 64-bit).
GC_INITIAL_HEAP_SIZE=100G GC_PRINT_STATS=1 ./gctest
Supported VDBs: manual soft mprotect
Using soft-dirty bit feature
In-use heap: 0% (0 KiB pointers + 0 KiB other)
Grow heap to 104857600 KiB after 0 bytes allocated
from bdwgc.
GC_INITIAL_HEAP_SIZE=100G ./gctest
Supported VDBs: manual soft mprotect
GC Warning: Bad maximum heap size 68719476736 - ignoring
Switched to incremental mode
Emulating dirty bits with mprotect/signals
Completed 6 tests
Allocated 11792895 collectable objects
Allocated 1224 uncollectable objects
Allocated 720438 atomic objects
Reallocated 36 objects
Garbage collection after fork is tested too
Finalized 13393/13393 objects - finalization is probably OK
Total number of bytes allocated is 1154623152
Total memory use by allocated blocks is 3457024 bytes
Final heap size is 659456 bytes
Unexpected heap growth - collector may be broken (heapsize: 107382521856, expected: 159383552)
Test failed
fish: Job 1, 'GC_INITIAL_HEAP_SIZE=100G ./gct…' terminated by signal SIGABRT (Abort)
Strange. I am suspecting that this may be related to WSL2. I am trying a genuine linux installation.
from bdwgc.
I think the root cause of this is that GC_MAXIMUM_HEAP_SIZE environment variable is defined somewhere else to a value which is smaller than GC_INITIAL_HEAP_SIZE, thus you are getting a warning that the initial size value is greater than the maximum one.
from bdwgc.
"Can't start up: not enough memory" means libgc can't allocate the amount of memory given in GC_INITIAL_HEAP_SIZE.
from bdwgc.
Related Issues (20)
- Problem getting finalizers to work HOT 3
- Add examples collection of small programs showing how to use GC for varioues features and with different configurations HOT 2
- Support CHERI extension HOT 3
- using extra pointer bits on x86_64 (tagged pointer support) HOT 3
- Resolve warnings reported by cppcheck 2.13.3
- rare case of infinite loop on Android HOT 10
- gctest hang on msys64 if mprotected-based incremental collection is on HOT 9
- zig-msvc target error: 'unistd.h' file not found HOT 18
- Specify soversion for shared libs built by Zig
- Unexpected heap growth in gctest if no parallel marker
- cordtest hang on Windows if shared build by Zig using msvc HOT 7
- Some Windows gnu builds hang in zig build
- gctest hang sometimes on Windows if compiled with threads discovery
- Redirect malloc_usable_size() in leak_detector.h HOT 6
- Compilation with TCC fails on ARM macs HOT 4
- How to use bdwgc in multi-thread program correctly? HOT 2
- Emscripten support fundamentally broken? HOT 3
- Assertion volation about length-based descriptor in GC_mark_from HOT 2
- Unexpected segmentation fault outside heap in gctest on Linux/x86 both in soft- and mprotect-vdb modes HOT 1
- GC_init segfaults if called from asm code on Linux/x86_64 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 bdwgc.