0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 07:50:57 +01:00

ircd::js: Make the best of SM's jsalloc.h missing ReportOutOfMemory here.

This commit is contained in:
Jason Volk 2016-10-19 01:44:35 -07:00
parent 23318a2b4f
commit 0b9efe06a1

View file

@ -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