about summary refs log tree commit diff stats
path: root/src/custommem.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixed an issue with custom memory when a map is created for an blockstree ↵ptitSeb2025-04-201-22/+52
| | | | node, avoiding re-entrance on blockstree handling and tree corruption
* Merge `mmapmem` into `mapallmem` (#2550)Chi-Kuan Chiu2025-04-201-22/+28
| | | | | | | | | | | | | | | This commit removes the separate `mmapmem` red-black tree and merges its into `mapallmem`, reducing overall memory usage. To distinguish memory regions that were previously tracked separately in `mmapmem`, we now use a new `mem_flag_t` bitmask enum in the data field of `mapallmem`: MEM_ALLOCATED = 1 // allocated MEM_RESERVED = 2 // reserved MEM_MMAP = 3 // allocated via mmap() Resolves #2546
* [DYNAREC] Better dynablock mempry handling, and fixed a regression ↵ptitSeb2025-04-181-7/+7
| | | | introduced when improving dynmem rbtree
* [WOW64] Finished skeleton code for PE build (#2542)Yang Liu2025-04-171-1/+1
| | | | | * [WOW64] Finished skeleton code for PE build * move musl to external
* [DYNAREC] Speedup a bit DYNAREC_DIRTY=1ptitSeb2025-04-101-1/+1
|
* [WOW64] More tweaks towards PE build (#2519)Yang Liu2025-04-101-30/+8
|
* Reduced usage of the rbtree in FindDynablockFromAddress by creating node ↵ptitSeb2025-04-091-4/+20
| | | | only on first query (in response to #2511 analysis)
* Made custommem OS-independent (#2517)Yang Liu2025-04-091-7/+2
|
* Added backtrace.h for holding backtrace-related functions (#2515)Yang Liu2025-04-091-3/+3
|
* [WOW64] Add wow64 PE build scaffolding (#2513)Yang Liu2025-04-081-65/+34
|
* Moved more OS-dependent functions to os.h (#2491)Yang Liu2025-04-011-0/+1
|
* [DEBUG] Fixed debug tool testAllBlocks() to correctly handle new map128 ↵ptitSeb2025-03-311-5/+12
| | | | custom alloc
* Optimized and fixed custom 128bytes allocatorptitSeb2025-03-301-2/+7
|
* Introduced a bitmap based allocator for <= 128bits customMalloc (not ↵ptitSeb2025-03-301-38/+167
| | | | lockfree yet)
* [BOX32] Small change on memory managment againptitSeb2025-03-181-34/+6
|
* This should fix non-Dynarec buildptitSeb2025-03-171-26/+26
|
* [BOX32] Small refactor on memory managmentptitSeb2025-03-171-30/+58
|
* [DYNAREC] Introduced DYNAREC_DIRTY=2 and changed a profile to use itptitSeb2025-03-121-2/+48
|
* [DYNAREC] Reduced lifetime of hotpage when using DIRTY=1ptitSeb2025-03-101-1/+1
|
* [DYNAREC] Fixed some potential issue with NEVERCLEAN on memory mapping trackingptitSeb2025-03-091-2/+3
|
* Removed isDBFromAddressRange and added that function to ↵ptitSeb2025-03-071-20/+5
| | | | cleanDBFromAddressRange as it was used only 1 time and followed by that function anyway
* [DYNAREC] Fixed a potential SEGFAULT in FindDynablockFromNativeAddress, and ↵ptitSeb2025-02-051-2/+4
| | | | added aprofile for BeamNG.drive linux version (for #424)
* [DYNAREC] Small change on DIRTY=1 to reduce hotpage effectptitSeb2025-01-271-1/+2
|
* Added [BOX64] prefix for all the stdout logs (#2279)Yang Liu2025-01-211-7/+7
| | | | | | | * Added [BOX64] prefix for all the stdout logs * Remove some hardcoded prefix * review
* [ENV] Initial refactor of env variables infrastructure (#2274)Yang Liu2025-01-211-18/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ENV] Initial refactor of env variables infrastructure * Ported BOX64_DYNAREC_LOG * Ported more options * Ported BOX64_MALLOC_HACK * Ported BOX64_DYNAREC_TEST * Ported more options * Ported more options * Ported more options * Ported all options * Removed old rcfile parser * Fix * review * fix * fix * more fixes
* Don't try to use free a custom block if init is not doneptitSeb2025-01-101-1/+1
|
* Small fix to program break trackingptitSeb2025-01-071-1/+1
|
* Trace program program to not allocate memory over there (help ↵ptitSeb2025-01-071-0/+20
| | | | TalosPrinciple2, probably other UE5 games too)
* [DYNAREC] Some light rework of the hotpage handlingptitSeb2024-12-231-4/+21
|
* Added more rbtrees in dynarec managment, to speedup ↵ptitSeb2024-12-231-57/+42
| | | | FindDynablockFromNativeAddress function
* Fix build for older system (for #2190)ptitSeb2024-12-231-0/+6
|
* Improved memory tracking and 32bits memory allocationptitSeb2024-12-211-6/+92
|
* Changed customme block resize to lower the number of reallocptitSeb2024-12-211-1/+1
|
* [BOX32] Improved pre-reserve highmem, and use that memory for dynablocksptitSeb2024-12-171-2/+10
|
* Added a new memExist helper function and use it instead of getMmapped were ↵ptitSeb2024-11-301-0/+6
| | | | it make sense
* [DYNAREC] Mark existing block as dirty when re-creating a memory blockptitSeb2024-11-171-2/+11
|
* [DYNAREC] Only test page protection when needed (and using a fester way) ↵ptitSeb2024-11-091-0/+10
| | | | (should address the performance regression of #2009)
* [RBTREE] Unify naming and prevent unintended symbol exposure (#2005)Jim Huang2024-11-061-12/+12
| | | | | Red-black tree operations now consistently use the 'rbtree_' prefix, and internal functions remain unexposed. Tested on RV64GC, resulting in a 498-byte reduction in the .text section size.
* Improve handling of memory protection, and excution bitptitSeb2024-11-041-3/+7
|
* [BOX32] Fixed some X11 function so wine launch (and added BOX64_X11SYNC to ↵ptitSeb2024-10-081-1/+10
| | | | help debug X11 programs)
* Improve debugging trace of rb_treeptitSeb2024-10-081-4/+4
|
* [BOX32][DYNAREC] Allocate Dynarec memory in higher prereserve regionsptitSeb2024-10-081-2/+31
|
* Removed wine prereserve hack on munmap now that prereserve is better handledptitSeb2024-10-081-5/+2
|
* Small adjustment in 32bits custom memory hinterptitSeb2024-10-081-1/+1
|
* Small change in custom Aligned Memory AllocatorptitSeb2024-10-071-2/+3
|
* Some cosmetic changes and more macro, to ease future testings on custom mallocptitSeb2024-10-071-1/+1
|
* Reworked mmap allocator and wine prereserve handling ([BOX32] fix handling ↵ptitSeb2024-10-071-1/+3
| | | | of wine prereserve)
* [BOX32] Added more 32bits wrapped function and reworked 32bits memory allocatorptitSeb2024-10-031-5/+19
|
* [BOX32] Keep low memory free by defaultptitSeb2024-09-301-1/+1
|
* [ANDROID][BOX32] Fix __libc_init, Fix Some Warnings (#1887)Pablo Labs2024-09-291-6/+11
| | | | | | | * [ANDROID][BOX32] Fix __libc_init, Fix Some Warnings * Fix More Warnings * Revert fillALProcWrapper() change