Re: [Gc] GC + Windows Mobile + Threads + Patch for WINCE
ivmai at mail.ru
Sun Aug 23 21:55:53 PDT 2009
Zeyi Lee <biosli at hotmail.com> wrote:
> Thanks for your reply, I think GetCurrentThreadId worked.
> I did changes as you said:
> me -> handle = (HANDLE)GetCurrentThreadId();
> And saw it has stopped the current thread. The test_leak_libgc project was running well.
Ok, then I'll prepare the patch.
> Then I run the test_libgc project in dopod P800. When the program enter the function cons many times(I don t know how many times), I got a warning:
> GC Warning: Out of Memory! Returning NIL!
> Out of memory
> I checked my smartphone the program used 25M bytes, and really Out of memory .
> That worked, right?
I set env var GC_MAXIMUM_HEAP_SIZE=25000000 and it works for me well (on Win32).
Could you try this config: -Ox -DALL_INTERIOR_POINTERS -DNO_DEBUGGING -DSMALL_CONFIG -DGC_THREADS -D_WIN32_WCE -DUNDER_CE -Iinclude
> Best wishes,
> GC Beginner
> Zeyi Lee
More information about the Gc