diff options
author | Zephyron <zephyron@citron-emu.org> | 2025-01-06 20:04:35 +1000 |
---|---|---|
committer | Zephyron <zephyron@citron-emu.org> | 2025-01-06 20:04:35 +1000 |
commit | 66b6d5b2da4b65d11fe54c29c3babb8fcd98bfde (patch) | |
tree | c94db36e4279f085c54740b73d6e61b3a1d5a8ee /src/core/precompiled_headers.h | |
parent | 83393a6c6bedc9c00378c73721ec17c7a4fb2b71 (diff) |
core: Improve device memory and buffer queue handling
This commit makes several improvements to device memory management and buffer
queue handling:
DeviceMemoryManager:
- Add null pointer and size checks for ReadBlock
- Fill unmapped memory with a known pattern (0xCC) instead of zeros
- Add better error logging for invalid memory accesses
- Add null pointer check for source pointer in memcpy
BufferQueueProducer:
- Improve error handling in WaitForFreeSlotThenRelock
- Add proper abandoned state checking during wait conditions
- Clean up and simplify buffer scanning logic
- Improve logging messages with more descriptive information
- Remove redundant buffer count validation
- Fix potential infinite loop condition during wait
These changes improve stability and error handling while making the code more
maintainable and debuggable. The use of a known pattern for unmapped memory
helps identify uninitialized memory access issues.
Diffstat (limited to 'src/core/precompiled_headers.h')
0 files changed, 0 insertions, 0 deletions