Nekotekina
|
03332c340d
|
Implement utils::bless (pointer cast)
Tries to workaround strict aliasing troubles.
Don't confuse with std::bless which works differently.
|
2021-03-10 16:02:00 +03:00 |
|
Nekotekina
|
a4fdbf0a88
|
Enable -Wstrict-aliasing=1 (GCC)
Fixed partially.
|
2021-03-09 03:10:15 +03:00 |
|
Nekotekina
|
5bdd1cf837
|
Remove some redundant code
Potential fix for future warnings.
|
2021-03-09 03:09:50 +03:00 |
|
Nekotekina
|
ded828dfc9
|
sysinfo.cpp: Implement utils::main_tid (main thread id)
Careful.
|
2021-03-06 23:10:31 +03:00 |
|
Nekotekina
|
87af905018
|
Enable -Wunused-parameter
|
2021-03-06 18:07:08 +03:00 |
|
Eladash
|
228988ca2b
|
Fix utils::get_firmware_version()
* Do not crash on invalid file contents.
* Do not crash on unexpected file.open() error.
|
2021-03-06 14:53:40 +03:00 |
|
Nekotekina
|
e6a3b59229
|
endian.hpp: simplify be_t/le_t constructors
|
2021-03-03 17:37:51 +03:00 |
|
Nekotekina
|
52fe86b56c
|
fixed_typemap.hpp: make it a bit fool-proof
Require objects to be non-copyable (move is still allowed).
|
2021-03-02 21:58:49 +03:00 |
|
Nekotekina
|
ea5e837bd6
|
fixed_typemap.hpp: return reference
|
2021-03-02 16:08:14 +03:00 |
|
Nekotekina
|
bbf52f3cea
|
named_thread: fix bugs in std::forward usage
Fix few misused threads and other bugs.
|
2021-03-02 16:08:14 +03:00 |
|
Nekotekina
|
d788b12a8e
|
fixed_typemap.hpp: reduce indirection
Backported some changes from auto_typemap.hpp
Implemented methods init(), reset(), clear()
Disabled recreation support.
|
2021-03-02 16:08:14 +03:00 |
|
Nekotekina
|
8a9320c4ef
|
auto_typemap.hpp: reduce indirection
Implement is_init() method.
Implement optional Size template arg for further optimization.
|
2021-03-02 16:08:14 +03:00 |
|
Nekotekina
|
5cc9bd7702
|
typeindices.hpp: upgrade with size and align info
This allows contiguous allocation (as in an aggregate).
|
2021-03-02 16:08:14 +03:00 |
|
Nekotekina
|
aa7e2376ec
|
shared_ptr.hpp: minor fixup for arrays
|
2021-03-02 16:08:14 +03:00 |
|
Nekotekina
|
71e16bfac3
|
shared_ptr.hpp: minor fixup
|
2021-03-01 00:28:28 +03:00 |
|
Nekotekina
|
b7c579adf9
|
Tentative fix for -Wattributes
These warnings enabled conditionally for GCC 10.1+.
|
2021-03-01 00:22:32 +03:00 |
|
Nekotekina
|
de9d859f4a
|
named_thread: implement task queue
atomic_ptr: implement push_head()
thread_ctrl::state() triggers task queue execution.
|
2021-02-28 20:20:17 +03:00 |
|
Megamouse
|
a4d4ab1df9
|
remove unused variable
|
2021-02-28 18:48:34 +03:00 |
|
Megamouse
|
e940632d93
|
Fix Nan in cpu_stats::get_usage
And apply same logic to linux and windows
|
2021-02-25 13:08:27 +03:00 |
|
Nekotekina
|
cd01a1eb09
|
Move CPUStats.h -> util/cpu_stats.cpp
|
2021-02-23 18:24:50 +03:00 |
|
Nekotekina
|
ad1027455a
|
Fix minor inconsistency in utils::memory_reset (Linux)
|
2021-02-22 13:00:01 +03:00 |
|
Nekotekina
|
9dc238187f
|
Simplify utils::align() a bit
std::is_unsigned implies std::is_integral I believe.
|
2021-02-22 13:00:01 +03:00 |
|
Eladash
|
b86ec2ffcf
|
Fix potential overflows in utils::aligned_div, utils::rounded_div
|
2021-02-19 16:10:03 +03:00 |
|
Nekotekina
|
e76d8eb046
|
Fix -Wstring-aliasing (gcc)
|
2021-02-18 19:38:22 +03:00 |
|
Nekotekina
|
038148bf06
|
Fix almost all GCC warnings
|
2021-02-17 22:59:04 +03:00 |
|
Nekotekina
|
8e6e57de86
|
Enable -Wunused-function warning
|
2021-02-15 14:39:53 +03:00 |
|
Nekotekina
|
4f8cac731b
|
Fix SAFE_BUFFERS attribute for GCC
|
2021-02-09 12:33:50 +03:00 |
|
Eladash
|
d3bc96a201
|
Fix minor issue with usage of STL thread::hardware_concurrency()
|
2021-01-29 18:23:29 +03:00 |
|
Nekotekina
|
67dd6754a6
|
Seal cereal includes in util/cereal.cpp
|
2021-01-28 10:48:53 +03:00 |
|
Nekotekina
|
ee288340b0
|
Implement thread_ctrl::scoped_priority
RAII priority control (+1, or -1)
|
2021-01-25 21:49:16 +03:00 |
|
Nekotekina
|
caa83d20f7
|
vm_native.cpp: implement shm::try_map
Treats addr as a hint, emulating windows behaviour.
|
2021-01-25 16:55:19 +03:00 |
|
kd-11
|
ead180aa60
|
win32: Be a bit more optimistic with allocated ranges; we get contiguous ranges more often than not
|
2021-01-24 14:24:55 +03:00 |
|
Nekotekina
|
0ac68def49
|
vm_native.cpp: minor compilation fix
|
2021-01-17 15:14:11 +03:00 |
|
Nekotekina
|
4ed76a15ff
|
Use different approach in shm::unmap_critical (Linux)
For now, set protection to PROT_NONE.
Attempt to address #9609
|
2021-01-15 20:11:09 +03:00 |
|
Nekotekina
|
b5837d1271
|
Memory: use MADV_DONTDUMP if available (Linux)
Also refactor other madvise() usage
|
2021-01-15 19:54:41 +03:00 |
|
Nekotekina
|
ea916fd7e1
|
Memory: fix critical bug in shm::unmap_critical (Linux)
It was leaving holes in reserved areas.
Windows is unaffected.
|
2021-01-14 18:04:29 +03:00 |
|
Eladash
|
923fcc3b3d
|
utils::shm: Hotfix after #9578
|
2021-01-12 23:57:36 +03:00 |
|
Eladash
|
c50b9bc4b4
|
utils::shm: Make map_self() atomic (#9578)
|
2021-01-12 19:53:18 +03:00 |
|
Nekotekina
|
db8e6fe7a7
|
Enable -Wunused-variable
|
2021-01-12 14:34:14 +03:00 |
|
Nekotekina
|
673e84920b
|
fixed_typemap.hpp: remove useless reporters
|
2021-01-05 16:16:01 +03:00 |
|
kd-11
|
cbe0000d23
|
Improved Zen chip detection
|
2021-01-03 19:31:18 +03:00 |
|
Nekotekina
|
8a5620592b
|
Implement util/fifo_mutex.hpp
Prototype. Uses 2 bytes.
Added minor fix to slow_mutex.hpp as well.
|
2020-12-31 20:07:50 +03:00 |
|
Nekotekina
|
35322b5d14
|
Remove deprecated _bit accessor from v128
Complicated (a lot of code), confusing (ambiguous)
|
2020-12-29 21:04:28 +03:00 |
|
Nekotekina
|
6b96807112
|
Reimplement utils::popcnt64
Implement utils::popcnt128
|
2020-12-29 15:28:02 +03:00 |
|
JohnHolmesII
|
02b684b810
|
Warnings: Warnings use kebab case, Mr. Kot
|
2020-12-29 14:17:34 +03:00 |
|
Nekotekina
|
e3dec420a2
|
vm_native.cpp: conditionally define c_madv_free
|
2020-12-27 12:19:50 +03:00 |
|
Nekotekina
|
1e32311a65
|
Use MAP_NORESERVE when available in mmap (Linux)
Used in: memory_reserve, memory_decommit (vm_native.cpp)
|
2020-12-27 10:20:42 +03:00 |
|
Marin Baron
|
92e5bb88e8
|
Remove std typeinfo
|
2020-12-27 00:30:16 +03:00 |
|
Nekotekina
|
567d23d856
|
Implement util/auto_typemap.hpp
Used in vm::block_t as an example.
|
2020-12-24 14:55:25 +03:00 |
|
Nekotekina
|
a8e0d261b7
|
types.hpp: more cleanup
Also fix compilation.
|
2020-12-22 19:08:09 +03:00 |
|