Merge pull request 'Release ignored error contexts' (#21) from 14 into main
Reviewed-on: #21
This commit was merged in pull request #21.
This commit is contained in:
@@ -20,10 +20,10 @@
|
||||
* It is not small (an akerr_ErrorContext is tens of kilobytes), but the storage
|
||||
* is allocated per thread only when that thread first touches the library's
|
||||
* thread-local block, and the alternative is a shared buffer that two threads
|
||||
* can be writing at once.
|
||||
* can be writing at once. The per-thread IGNORE() snapshot lives in the public
|
||||
* template header because the macro copies into it at the call site.
|
||||
*/
|
||||
static AKERR_THREAD_LOCAL akerr_ErrorContext __akerr_last_ditch;
|
||||
AKERR_THREAD_LOCAL akerr_ErrorContext *__akerr_last_ignored;
|
||||
akerr_ErrorUnhandledErrorHandler akerr_handler_unhandled_error;
|
||||
akerr_ErrorLogFunction akerr_log_method = NULL;
|
||||
|
||||
@@ -236,7 +236,6 @@ static void akerr_init_state(void)
|
||||
AKERR_ARRAY_ERROR[i].arrayid = i;
|
||||
AKERR_ARRAY_ERROR[i].stacktracebufptr = (char *)&AKERR_ARRAY_ERROR[i].stacktracebuf;
|
||||
}
|
||||
__akerr_last_ignored = NULL;
|
||||
(void)akerr_last_ditch_context();
|
||||
if ( akerr_log_method == NULL ) {
|
||||
akerr_log_method = &akerr_default_logger;
|
||||
|
||||
Reference in New Issue
Block a user