Daan
f33aa58d88
Merge branch 'dev' into dev
2024-12-30 12:27:46 -08:00
Daan
e05aae944f
Merge pull request #917 from rui314/missing-include
...
Add a missing #include
2024-12-30 12:20:08 -08:00
daanx
0e76fe3798
add address hint to primitive allocation API
2024-11-16 16:57:37 -08:00
daanx
b27d154ffd
add virtual address bits and physical memory to the mem config
2024-11-16 15:37:08 -08:00
daanx
b5c6495f69
don't consider memory as large OS pages if only madvise'd
2024-08-20 15:58:36 -07:00
Rui Ueyama
566b2c51fc
Add a missing #include
...
This change fixes the "implicit declaration of function 'getenv'" warning.
Since stdlib.h is completely portable, as it is defined by the C standard,
we can safely include it unconditionally.
2024-07-22 09:43:43 +09:00
QuarticCat
632421da3a
fix typos
2024-06-19 10:49:03 +08:00
daanx
e4c8f42bb6
always include sys/prctl.h on linux to disable THP if large_os_pages are not enabled
2024-06-02 16:10:08 -07:00
Daan Leijen
f93fb900b7
move lock code to atomic.h
2024-06-01 17:25:45 -07:00
Daan Leijen
0b3cd51249
add initial primitive api for locks
2024-06-01 16:45:20 -07:00
daanx
92a8268fa4
make warning an trace message if we cannot allocate at a hinted address, upstream of python/cpython#113372
2024-05-18 16:45:23 -07:00
daanx
999b31fea6
allow syscall include on FreeBSD as well
2024-05-18 16:39:04 -07:00
daanx
87c4012f13
make syscall test in primitives positive and avoid unused function warnings. upstream python/cpython#111907 , python/cpython#111593 , python/cpython#117548
2024-05-18 16:37:40 -07:00
daanx
d9441ffce2
fix compilation on AIX, upstream of python/cpython#111593
2024-05-18 16:16:36 -07:00
Daan
a38c8dd0f9
rename must_free_whole -> has_partial_free
2024-05-16 14:41:10 -07:00
Daan
79ab7c63d7
disable transparent huge pages for a process too if the allow_large_os_pages option is set to false
2024-04-20 16:37:09 -07:00
Daan
764aa44598
remove macOS preprocessor macros that do not exist (anymore). issue #879
2024-04-19 09:38:40 -07:00
Daan
2473676e18
further fixes to macOS version checks by ensuring MAC_OS_X_VERSION_10_7 is always defined (issue #829 )
2024-03-03 09:54:49 -08:00
Daan
cca3fc26b0
fix macOS version checks, issues #829
2024-03-03 08:41:25 -08:00
Daan
128c7c1876
cleanup thp disable a bit
2024-03-02 16:55:13 -08:00
Daan
182583d3dd
Merge branch 'dev' into dev_thp_disable
2024-03-02 16:49:27 -08:00
Daan
3fe3d540b6
Fix incorrect MAP_HUGE_1GB check #793
2024-03-02 15:57:54 -08:00
Daan
7b398ad924
delete pthread key at shutdown, PR #810 by @jkriegshauser
2024-03-02 15:51:51 -08:00
Daan
b7d44378bb
avoid unused function warning on Solaris, PR #830 by @kulikjak
2024-03-02 15:32:35 -08:00
Daan
98abfe042c
avoid syscall on openBSD, issue #821 by @blackgnezdo
2024-03-02 15:08:22 -08:00
Daan
bccf10e164
allow random fallback on older macOS versions, issue #829
2024-03-02 14:49:37 -08:00
Daan
89afa14045
fix build on illumos; by @dancrossnyc, issue #841
2024-03-02 14:25:16 -08:00
David Carlier
388d1aa9bd
new Linux/Android option proposal.
...
Allowing to disable transparent huge pages on Linux/Android, so
we avoid affecting the whole system (such as /sys/kernel/mm/transparent_hugepage/enabled).
2023-07-14 21:55:30 +01:00
daanx
e10467f673
add libc primitives to reduce dependencies
2023-05-19 11:57:10 -07:00
daanx
0bb5cecbc2
use most performant reset on Linux (MADV_FREE) and Windows (MEM_RESET) as we use the precise decommit by default for purging anyways
2023-04-24 08:56:42 -07:00
daanx
88a8b13782
revise unix decommit
2023-04-23 20:53:27 -07:00
daanx
bfe2651ec9
revise decommit on linux in debug/secure mode
2023-04-23 20:32:22 -07:00
daanx
7f93bf02c9
be explicit about memory tracking in os.c
2023-04-23 16:40:01 -07:00
daanx
012f716485
add is_zero flag to prim_commit
2023-04-21 10:37:22 -07:00
daanx
4d976270eb
review is_zero flag
2023-04-18 17:18:39 -07:00
daanx
a8c581059b
Merge branch 'dev' into dev-reset
2023-04-17 09:48:58 -07:00
daanx
8027fcfecd
Merge branch 'dev' into dev-reset
2023-04-15 17:59:01 -07:00
Sergey Fedorov
2647146abd
prim.c: fix for macOS without MACH_TASK_BASIC_INFO
2023-04-15 07:07:10 +08:00
David CARLIER
bcbcc343ec
fix build on freebsd.
...
close #722
2023-04-07 08:59:43 +01:00
daanx
cb0369452d
use exponetially sized arenas
2023-04-04 17:54:33 -07:00
daanx
d01017ffda
extend primitive api with is_zero parameters
2023-04-04 16:32:39 -07:00
daanx
1d231be758
clarify needs_recommit
2023-04-04 13:05:48 -07:00
daanx
5c39fe7246
decommit returns whether re-commit is needed
2023-04-04 12:57:18 -07:00
Daan Leijen
8607c4a5df
fix compile without syscall (pr #714 by asuka-mio)
2023-03-30 09:24:06 -07:00
Daan Leijen
47d8cd916e
fix compile without MADV_FREE (pr #715 by elbaro)
2023-03-30 09:21:07 -07:00
Daan Leijen
f806eb8498
remove redundant OR in mmap flags (pr #675 )
2023-03-29 16:15:20 -07:00
Daan Leijen
dd7b99d477
apply some spelling fixes from PR #710
2023-03-29 16:10:01 -07:00
Daan Leijen
61a32e62b8
support cygwin compilation (pr #712 )
2023-03-29 15:56:31 -07:00
Daan Leijen
f20d22a3e4
fix arm compilation (PR 694)
2023-03-29 15:53:05 -07:00
Daan Leijen
1cb0193ff1
fix hex formatting of errors
2023-03-29 13:00:35 -07:00