Re: [Gc] "GC_is_visble_test failed" error on MS-W indows
Ivan Maidanski <ivmai-JGs/[email protected]> Thu, 12 Jun 2014 12:44:16 +0400
| Newsgroups | gmane.comp.programming.garbage-collection.boehmgc,gmane.spam.detected |
|---|---|
| Message-ID | <[email protected]> |
Hi Eli, The config you sent corresponds to single-threaded one (GC_WIN32_THREAD is not defined) - I checked it with MinGW: gcc -I include -DHAVE_CONFIG_H tests/test.c extra/gc.c So, I don't understand why you say it uses Win32 threads. If you pass --disable-threads to the configure script, the built library does not use any threading API and does not have any support threads in the client app. If your app uses pthreads but GC is not supporting pthreads (in case of MnGW, GC_WIN32_PTHREADS not defined) then garbage collection will malfunction. Regards, Ivan Wed, 11 Jun 2014 17:52:40 +0300 from Eli Zaretskii <[email protected]>: >> From: Ivan Maidanski < [email protected] > >> Cc: [email protected] < [email protected] > >> Date: Wed, 11 Jun 2014 11:57:52 +0400 >> >> The reason of failure seems to me pretty obvious - mingw variant does not "track" pthread threads by default, so they are not scanned. The question is why win32 threads support is on while you pass disable-threads. Please send me config.h and config.log > >Thanks for responding. The files you requested are attached below. > >Let me be sure I understand what you are saying: are you saying that >even when I passed --disable-threads to the configure script, the >built library still expected some kind of threading to be available, >and since there was no threading included in the build, that's what >caused the fatal error? > > _______________________________________________ bdwgc mailing list [email protected] https://lists.opendylan.org/mailman/listinfo/bdwgc