now crazy mode
This commit is contained in:
@@ -52,7 +52,7 @@ void Thread::resume(Thread *next) {
|
||||
context_switch(&next->context, &context);
|
||||
}
|
||||
|
||||
void* operator new(size_t sz)
|
||||
void* Thread::operator new(size_t sz) noexcept
|
||||
{
|
||||
if (sz == 0)
|
||||
++sz; // avoid std::malloc(0) which may return nullptr on success
|
||||
|
||||
Reference in New Issue
Block a user