From b6f5e9330f6867824cda739fd229d99f96e7e760 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 17 Dec 2015 21:25:16 +0300 Subject: [PATCH] Return GC_UNIMPLEMENTED instead of abort in GC_get_stack_base (OS/2) * os_dep.c (GC_get_stack_base): Replace ABORT (in case of DosGetInfoBlocks failure) with WARN() and return GC_UNIMPLEMENTED. --- os_dep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/os_dep.c b/os_dep.c index 7cf10ff9..93bf6589 100644 --- a/os_dep.c +++ b/os_dep.c @@ -817,7 +817,8 @@ GC_INNER word GC_page_size = 0; PTIB ptib; /* thread information block */ PPIB ppib; if (DosGetInfoBlocks(&ptib, &ppib) != NO_ERROR) { - ABORT("DosGetInfoBlocks failed"); + WARN("DosGetInfoBlocks failed\n", 0); + return GC_UNIMPLEMENTED; } sb->mem_base = ptib->tib_pstacklimit; return GC_SUCCESS; -- 2.40.0