From 0b9efe06a1f46251fefb5d666ff5297986e0ed16 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 19 Oct 2016 01:44:35 -0700 Subject: [PATCH] ircd::js: Make the best of SM's jsalloc.h missing ReportOutOfMemory here. --- ircd/js.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ircd/js.cc b/ircd/js.cc index 2e5a2800d..a9f49f7ad 100644 --- a/ircd/js.cc +++ b/ircd/js.cc @@ -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