rpcs3/Utilities
Elad 575a245f8d
IDM: Implement lock-free smart pointers (#16403)
Replaces `std::shared_pointer` with `stx::atomic_ptr` and `stx::shared_ptr`.

Notes to programmers:

* This pr kills the use of `dynamic_cast`, `std::dynamic_pointer_cast` and `std::weak_ptr` on IDM objects, possible replacement is to save the object ID on the base object, then use idm::check/get_unlocked to the destination type via the saved ID which may be null. Null pointer check is how you can tell type mismatch (as dynamic cast) or object destruction (as weak_ptr locking).
* Double-inheritance on IDM objects should be used with care, `stx::shared_ptr` does not support constant-evaluated pointer offsetting to parent/child type.
* `idm::check/get_unlocked` can now be used anywhere.

Misc fixes:
* Fixes some segfaults with RPCN with interaction with IDM.
* Fix deadlocks in access violation handler due locking recursion.
* Fixes race condition in process exit-spawn on memory containers read.
* Fix bug that theoretically can prevent RPCS3 from booting - fix `id_manager::typeinfo` comparison to compare members instead of `memcmp` which can fail spuriously on padding bytes.
* Ensure all IDM inherited types of base, either has `id_base` or `id_type` defined locally, this allows to make getters such as `idm::get_unlocked<lv2_socket, lv2_socket_raw>()` which were broken before. (requires save-states invalidation)
* Removes broken operator[] overload of `stx::shared_ptr` and `stx::single_ptr` for non-array types.
2024-12-22 20:59:48 +02:00
..
address_range.h
bin_patch.cpp Fix std::basic_string warnings (#16261) 2024-11-11 21:54:44 +02:00
bin_patch.h Fix std::basic_string warnings (#16261) 2024-11-11 21:54:44 +02:00
bit_set.h
BitField.h
cfmt.h
cheat_info.cpp
cheat_info.h
cond.cpp
cond.h
Config.cpp overlays: get localized values in home menu settings 2024-11-15 09:48:12 +01:00
Config.h overlays: get localized values in home menu settings 2024-11-15 09:48:12 +01:00
CRC.h
date_time.h
File.cpp fs: Minor fix of fs::dir::open 2024-11-28 05:47:40 +02:00
File.h Qt: Deprecate processEvents() part 2 2024-11-27 16:00:40 +02:00
geometry.h
git-version-gen.cmd
JIT.h
JITASM.cpp Block parallel JIT allocation on macos 2024-08-29 13:08:23 +03:00
JITLLVM.cpp Improve AMD cpu detection 2024-10-07 05:36:19 +02:00
lockless.h lockless.h: Fox 2024-11-18 18:45:34 +02:00
LUrlParser.cpp
LUrlParser.h
mutex.cpp
mutex.h IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
ppu_patch.h aarch64: Support calloc patch blocks 2024-08-31 13:55:58 +03:00
rXml.cpp
rXml.h
sema.cpp
sema.h
simple_ringbuf.cpp
simple_ringbuf.h
stack_trace.cpp aarch64: Fix compilation for windows-on-arm 2024-09-04 07:49:49 +03:00
stack_trace.h
StrFmt.cpp More constexpr 2024-11-16 15:10:20 +01:00
StrFmt.h
StrUtil.h
sync.h
Thread.cpp IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
Thread.h c++-ify empty return 2024-09-04 07:49:49 +03:00
Timer.h
transactional_storage.h
version.cpp
version.h