mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
ircd::js: Make the best of SM's jsalloc.h missing ReportOutOfMemory here.
This commit is contained in:
parent
23318a2b4f
commit
0b9efe06a1
1 changed files with 8 additions and 0 deletions
|
@ -117,6 +117,14 @@ ircd::js::version(const ver &type)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
__attribute__((noreturn))
|
||||||
|
js::ReportOutOfMemory(ExclusiveContext *const c)
|
||||||
|
{
|
||||||
|
ircd::js::log.critical("jsalloc(): Reported out of memory (ExclusiveContext: %p)", (const void *)c);
|
||||||
|
std::terminate();
|
||||||
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// ircd/js/js.h - With 3rd party (JSAPI) symbols
|
// ircd/js/js.h - With 3rd party (JSAPI) symbols
|
||||||
|
|
Loading…
Reference in a new issue