Re: Python GC does not work as it should be

2008-06-18 Thread Tim Roberts
"Jaimy Azle" <[EMAIL PROTECTED]> wrote: > >Jean-Paul Calderone wrote: > >> A system exception? What's that? C doesn't have exceptions. > >How could I determine it? I dont know GCC implementation, and others, but C >on MSVC does have it. My application were not written in C, an exception >raised

Re: Python GC does not work as it should be

2008-06-16 Thread Martin v. Löwis
> Yes I did my job, i had mention it before. but an application would not > consist mine only, it could be incorporate your c extension module(s), and > others, means problem could be from my side, yours, or others. Though > forcing to reset the state would not mean fixing the real problem, but

Re: Python GC does not work as it should be

2008-06-16 Thread Jaimy Azle
Jean-Paul Calderone wrote: > > There's plenty of things other than that one static variable that can get > messed up in this scenario. The access violation could easily come along > with random memory corruption. Fixing just the GC to handle this doesn't > mean your program will be able to keep

Re: Python GC does not work as it should be

2008-06-16 Thread Jean-Paul Calderone
On Mon, 16 Jun 2008 18:11:24 +0700, Jaimy Azle <[EMAIL PROTECTED]> wrote: Jean-Paul Calderone wrote: A system exception? What's that? C doesn't have exceptions. How could I determine it? I dont know GCC implementation, and others, but C on MSVC does have it. My application were not writte

Re: Python GC does not work as it should be

2008-06-16 Thread Jaimy Azle
Jean-Paul Calderone wrote: > > A system exception? What's that? C doesn't have exceptions. > How could I determine it? I dont know GCC implementation, and others, but C on MSVC does have it. My application were not written in C, an exception raised was something like "access violation at addr

Re: Python GC does not work as it should be

2008-06-16 Thread Jean-Paul Calderone
On Mon, 16 Jun 2008 17:51:00 +0700, Jaimy Azle <[EMAIL PROTECTED]> wrote: See this piece of code: /* API to invoke gc.collect() from C */ Py_ssize_t PyGC_Collect(void) { Py_ssize_t n; if (collecting) n = 0; /* already collecting, don't do anything */ else { collecting = 1; n = collect(NUM_GE

Python GC does not work as it should be

2008-06-16 Thread Jaimy Azle
See this piece of code: /* API to invoke gc.collect() from C */ Py_ssize_t PyGC_Collect(void) { Py_ssize_t n; if (collecting) n = 0; /* already collecting, don't do anything */ else { collecting = 1; n = collect(NUM_GENERATIONS - 1); collecting = 0; } return n; } If a system excepti