Commit Graph

22 Commits (84d24c4440f79a7f7edc6b06bc9a30bafcec0af6)

Author SHA1 Message Date
slava 3d5e96172f Clean up out of memory handler 2006-02-09 03:12:20 +00:00
slava b861c09e9f Clean up AGL's patch 2006-02-08 00:09:46 +00:00
agl d088a97f82 Add data/return stack under/over flow checks for POSIX
This adds extra errors:
#define ERROR_STACK_UNDERFLOW (12<<3)
#define ERROR_STACK_OVERFLOW (13<<3)
#define ERROR_RETSTACK_UNDERFLOW (14<<3)
#define ERROR_RETSTACK_OVERFLOW (15<<3)

On unix the data and return stacks have poison pages above and below them in
memory. This patch adds checks to the sigv signal handler which checks to see
if the faulting address is in one of these pages and, if so, triggers the
correct error.

To see:
: data-overflow 1 2 3 data-overflow ;
: ret-underflow V{ } set-callstack r> ;
: ret-overflow 1 >r ret-overflow ;

(to test data-underflow just call + with an empty stack)


AGL
2006-02-07 22:29:36 +00:00
Doug Coleman ace98260e3 Added a fix for sigaction(): now retries on recoverable error EINTR 2006-01-31 01:11:22 +00:00
Slava Pestov a5e14acaa3 fix a crash 2005-12-25 04:01:49 +00:00
Slava Pestov 036d1f9673 bootstrap fix 2005-11-15 17:58:44 +00:00
Slava Pestov 9440f385e5 interruption checks get compiled now, fixnum/mod fixed on powerpc 2005-11-12 05:37:24 +00:00
Slava Pestov b15a262e54 implement mach exception handling 2005-10-24 00:50:29 +00:00
Slava Pestov 29190ebc3e catch change, new cleanup word, with-server combinator 2005-09-21 00:18:01 +00:00
Slava Pestov bf821880ab removed profiler because it sucks 2005-06-15 20:34:16 +00:00
Slava Pestov 69334b2043 various cleanups, and a new register class concept in preparation for float parameters in PowerPC FFI 2005-06-14 09:01:07 +00:00
Slava Pestov 46569a782b debugging generational GC 2005-05-12 07:52:56 +00:00
Slava Pestov 055d116310 generational GC work 2005-05-12 05:02:39 +00:00
Slava Pestov 056af41552 more generational GC work 2005-05-11 04:43:52 +00:00
Slava Pestov c15c1e3dd8 renaming c_stream_error to io_error 2005-05-01 18:30:53 +00:00
Slava Pestov 3ab8c7cf47 removing cfactor I/O code; unix ffi I/O socket code fixes 2005-04-23 00:09:46 +00:00
Mackenzie Straight 88ba22ff6c Win32 version ported to gcc, eliminate MSVC hacks, add gcc hacks 2005-02-08 22:05:08 +00:00
Slava Pestov 0dfb0cf01e array refactoring; started hashtable refactoring 2005-01-26 00:40:57 +00:00
Slava Pestov 8247cc5ff4 renumbering some types and other cleanups 2005-01-15 00:51:38 +00:00
Slava Pestov 6ac8fdb22f executing global was not GC'd 2004-12-31 07:38:58 +00:00
Slava Pestov 81705a955d type inference changes, comment out smart-terminal reference in win32-console, win32-compatible factor plugin 2004-12-29 08:35:46 +00:00
Slava Pestov 41e63af7e5 merged everything except read.c 2004-12-11 03:47:03 +00:00