[Gc] GC + Windows Mobile + Threads + Patch for WINCE

biosli biosli at hotmail.com
Thu Aug 27 19:27:09 PDT 2009

Dear Ivan:
Ivan Maidanski wrote:
> As it turns this also required in WinCE (unfortunately) for reasons we haven't yet understood. I'd like you to undo the changes (above) and change "define GC_wnt FALSE" (in dyn_load.c) to "define GC_wnt TRUE". If this won't help, I'd like you to execute VirtualQuery for current_p (or limit) which causes SEGV and post me the info it returns.

I change the code as you said.(undo the changes, define GC_wnt TRUE)
It works.(no crash, no data abort)

Test output:
Received WM_CLOSE, closing window
The thread 'GC_win32_start' (0xaed79f6e) has exited with code 0 (0x0).
Completed 6 tests
Allocated 794188 collectable objects
Allocated 1212 uncollectable objects
Allocated 0 atomic objects
Allocated 0 stubborn objects
Finalized 1659/1659 objects - finalization is probably ok
Total number of bytes allocated is 24000834
Final heap size is 15699968 bytes
Collector appears to work
The thread 'GC_win32_start' (0x4da96962) has exited with code 0 (0x0).
Unload module: chsime03.dll
The program '[aed6eda2] test_libgcd_Wince.exe' has exited with code 0 (0x0).
Best wishes,
Zeyi Lee

More information about the Gc mailing list