Briar
6f45ab5344
Revert "Disabled MCO_USE_VMEM_ALLOCATOR because standard stack size seems to suffice"
This reverts commit ada5dcf01a .
9 months ago
darktux
ada5dcf01a
Disabled MCO_USE_VMEM_ALLOCATOR because standard stack size seems to suffice
2 years ago
darktux
5af02a5cea
Save memory by using dyamic stack size in Fiber
2 years ago
darktux
4a71984803
clang-formated new fiber.cpp and minicoro.h
2 years ago
darktux
16f92e5b32
Implemented rewindless Fiber without Boost (using minicoro)
2 years ago
Liam
5be8a74b0c
general: fix spelling mistakes
3 years ago
Liam
e551960935
common/fiber: make fibers easier to use
4 years ago
Morph
2b87305d31
general: Convert source file copyright comments over to SPDX
This formats all copyright comments according to SPDX formatting guidelines.
Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
4 years ago
bunnei
e1b3368c18
hle: kernel: Use std::mutex instead of spin locks for most kernel locking.
4 years ago
bunnei
b533a775d2
common: fiber: YieldTo: Avoid hard crash on nullptr previous_fiber.
- When the emulator crashes to desktop below, we don't even get this captured in a log, making such issues harder to debug.
4 years ago
MerryMage
63c5190057
fiber: Double default stack size
Stack overflow occurs with some guest applications
5 years ago
bunnei
e4b692bd16
common: Fiber: use a reference for YieldTo.
- Fixes another small leak.
5 years ago
bunnei
a5092f9918
common: fiber: Use weak_ptr when yielding.
- Avoids a memory leak, as taking a strong reference of the fiber here causes a circular reference.
- Supersedes #6006 with a more narrow fix.
5 years ago
bunnei
845a217d5e
Revert "core: Switch to unique_ptr for usage of Common::Fiber."
5 years ago
bunnei
3322f10f84
core: Switch to unique_ptr for usage of Common::Fiber.
- With using unique_ptr instead of shared_ptr, we have more explicit ownership of the context.
- Fixes a memory leak due to circular reference of the shared pointer.
5 years ago
bunnei
05ff3e467e
common: fiber: Use VirtualBuffer for stack memory.
- This will be aligned by default, and helps memory usage.
5 years ago
bunnei
b92d8acd2f
common: fiber: Use boost::context instead of native fibers on Windows.
5 years ago
Lioncash
c20ed9e3da
common/fiber: Move all member variables into impl class
Hides all of the implementation details for users of the class. This has
the benefit of reducing includes and also making the fiber classes
movable again.
5 years ago
Lioncash
38ffaef6eb
common: Enable warnings as errors
Cleans up common so that we can enable warnings as errors.
5 years ago
ReinUsesLisp
171b94e8fa
common/fiber: Take shared_ptr<Fiber> by copy in YieldTo
YieldTo does not intend to modify the passed shared_ptrs.
Pass it by copy to keep a reference count while this function executes.
5 years ago
Fernando Sahmkow
94a51e6b21
Core/Common: Address Feedback.
6 years ago
Fernando Sahmkow
51a1732324
Common/Fiber: Address Feedback and Correct Memory leaks.
6 years ago
Fernando Sahmkow
cffae9c733
Common/Fiber: Implement Rewind on Boost Context.
6 years ago
Fernando Sahmkow
1460bdc5ab
Common/Fiber: Implement Rewinding.
6 years ago
Fernando Sahmkow
a42b226559
Common/Fiber: Additional corrections to f_context.
6 years ago
Fernando Sahmkow
89c691725c
Common/Fiber: Correct f_context based Fibers.
6 years ago
Fernando Sahmkow
e7f5b1f1d3
Core/HostTiming: Allow events to be advanced manually.
6 years ago
Fernando Sahmkow
564713fb46
Common/Tests: Address Feedback
6 years ago
Fernando Sahmkow
4e9a9e584c
Common: Make MinGW build use Windows Fibers instead of fcontext_t
6 years ago
Fernando Sahmkow
09d2ffa663
Common/Tests: Clang Format.
6 years ago
Fernando Sahmkow
91f138bd19
Common: Correct fcontext fibers.
6 years ago
Fernando Sahmkow
a1e7931d20
Common: Polish Fiber class, add comments, asserts and more tests.
6 years ago
Fernando Sahmkow
279ff1c0ff
Tests: Add tests for fibers and refactor/fix Fiber class
6 years ago
Fernando Sahmkow
353166d648
Common: Implement a basic Fiber class.
6 years ago