mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 23:11:25 +12:00
sys_ppu_thread: reduce global memory stats after thread creation
This commit is contained in:
parent
72d1efa383
commit
dc5cdb3bb4
3 changed files with 18 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "SPURecompiler.h"
|
||||
#include "lv2/sys_sync.h"
|
||||
#include "lv2/sys_prx.h"
|
||||
#include "lv2/sys_memory.h"
|
||||
#include "Emu/GDB.h"
|
||||
|
||||
#ifdef LLVM_AVAILABLE
|
||||
|
@ -747,6 +748,11 @@ ppu_thread::~ppu_thread()
|
|||
{
|
||||
// Deallocate Stack Area
|
||||
vm::dealloc_verbose_nothrow(stack_addr, vm::stack);
|
||||
|
||||
if (const auto dct = g_fxo->get<lv2_memory_container>())
|
||||
{
|
||||
dct->used -= stack_size;
|
||||
}
|
||||
}
|
||||
|
||||
ppu_thread::ppu_thread(const ppu_thread_params& param, std::string_view name, u32 prio, int detached)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue