提交 6ef0e613 创建 作者: Nickolai Zeldovich's avatar Nickolai Zeldovich

forkexectree can run even longer now

上级 4644ca7a
...@@ -24,7 +24,10 @@ void* ...@@ -24,7 +24,10 @@ void*
klockstat::operator new(unsigned long nbytes) klockstat::operator new(unsigned long nbytes)
{ {
assert(nbytes == sizeof(klockstat)); assert(nbytes == sizeof(klockstat));
return kmalloc(sizeof(klockstat), "klockstat"); void* p = kmalloc(sizeof(klockstat), "klockstat");
if (!p)
throw std::bad_alloc();
return p;
} }
void void
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论