mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 08:59:59 +00:00
kernel: fix passthrough of local captures in lambda
This commit is contained in:
parent
feaf010fa2
commit
bd38aefc57
1 changed files with 3 additions and 1 deletions
|
@ -212,7 +212,9 @@ struct KernelCore::Impl {
|
||||||
system_resource_limit = KResourceLimit::Create(system.Kernel());
|
system_resource_limit = KResourceLimit::Create(system.Kernel());
|
||||||
system_resource_limit->Initialize(&core_timing);
|
system_resource_limit->Initialize(&core_timing);
|
||||||
|
|
||||||
const auto [total_size, kernel_size] = memory_layout->GetTotalAndKernelMemorySizes();
|
const auto sizes{memory_layout->GetTotalAndKernelMemorySizes()};
|
||||||
|
const auto total_size{sizes.first};
|
||||||
|
const auto kernel_size{sizes.second};
|
||||||
|
|
||||||
// If setting the default system values fails, then something seriously wrong has occurred.
|
// If setting the default system values fails, then something seriously wrong has occurred.
|
||||||
ASSERT(system_resource_limit->SetLimitValue(LimitableResource::PhysicalMemory, total_size)
|
ASSERT(system_resource_limit->SetLimitValue(LimitableResource::PhysicalMemory, total_size)
|
||||||
|
|
Loading…
Reference in a new issue