mail-archives/mono-list/2003-October/016557.html

75 строки
3.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] mono-0.28/libgc/misc.c:GC_clear_stack_inner comments, please
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:malekith%40pld-linux.org">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="016552.html">
<LINK REL="Next" HREF="016553.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] mono-0.28/libgc/misc.c:GC_clear_stack_inner comments, please
</H1>
<B>Michal Moskal
</B>
<A HREF="mailto:malekith%40pld-linux.org"
TITLE="[Mono-list] mono-0.28/libgc/misc.c:GC_clear_stack_inner comments, please">malekith@pld-linux.org
</A><BR>
<I>Sun, 26 Oct 2003 11:03:35 +0100</I>
<P><UL>
<LI> Previous message: <A HREF="016552.html">[Mono-list] mono-0.28/libgc/misc.c:GC_clear_stack_inner comments, please
</A></li>
<LI> Next message: <A HREF="016553.html">[Mono-list] Help on running ASP.net on Apache
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16557">[ date ]</a>
<a href="thread.html#16557">[ thread ]</a>
<a href="subject.html#16557">[ subject ]</a>
<a href="author.html#16557">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Sun, Oct 26, 2003 at 09:28:45AM +1100, Peter Kostouros wrote:
&gt;<i> I wonder if I can get some input from the following snippet of code
</I>&gt;<i> (mono-0.28/libgc/misc.c:GC_clear_stack_inner). What is the essence of
</I>&gt;<i> this function?
</I>
GC looks for roots (i.e. pointers it starts looking for live data from)
in various places, mostly the stack and registered global variables.
When C function finishes, it can leave bunch of pointers on the stack.
All that stuff is considered live data by the GC, which makes it leave
more garbage around. My guess about this function, is that it tries to
clear stack out of pointers.
&gt;<i> Mono applications abnormally terminate upon completion:
</I>&gt;<i> perhaps something going wrong with recursion?
</I>
Perhaps the limit variable is set wrong, and this function hits the
OS limit?
--
:<i> Michal Moskal :: <A HREF="http://www.kernel.pl/~malekith">http://www.kernel.pl/~malekith</A> : GCS {C,UL}++++$ a? !tv
</I>:<i> When in doubt, use brute force. -- Ken Thompson : {E-,w}-- {b++,e}&gt;+++ h
</I>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="016552.html">[Mono-list] mono-0.28/libgc/misc.c:GC_clear_stack_inner comments, please
</A></li>
<LI> Next message: <A HREF="016553.html">[Mono-list] Help on running ASP.net on Apache
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16557">[ date ]</a>
<a href="thread.html#16557">[ thread ]</a>
<a href="subject.html#16557">[ subject ]</a>
<a href="author.html#16557">[ author ]</a>
</LI>
</UL>
</body></html>