[Gc] Fix for gc.h and gc_pthread_redirects.h

Boehm, Hans hans.boehm at hp.com
Fri May 22 17:59:21 PDT 2009


Committed this (diff63) along with diff65.

Hans 

> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com 
> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Ivan Maidanski
> Sent: Wednesday, February 18, 2009 2:20 PM
> To: gc at napali.hpl.hp.com
> Cc: Gregory Peele ARA/CFD
> Subject: [Gc] Fix for gc.h and gc_pthread_redirects.h
> 
> Hi!
> 
> This fix was suggested by "Gregory Peele ARA/CFD" <gpeele at ara.com>.
> 
> Changes for gc_pthread_redirects.h:
> - dlfcn.h is included for dlopen() proto before undefining 
> "dlopen" (so, it's possible now to include dlfcn.h after gc.h 
> from user code);
> - GC_dlopen() proto is added (except for Darwin as it's 
> missing there);
> - "dlopen" is explicitly undefined (before its redefinition).
> 
> Similar changes for gc.h:
> - "process.h" is included besides "windows.h" (for 
> _beginthreadex/_endthreadex);
> - GC_NO_THREAD_DECLS is moved to the right place (before 
> closing "extern C").
> 
> Notes:
> 1. Some changes (regarding this, like undefining 
> _beginthreadex/_endthreadex explicitly) have already been 
> committed to CVS (since v7.1); 2. In fact, in my code, I used 
> to include process.h before gc.h (as a work-around) and it 
> works fine for all Win32 compilers I've tested (VC++, BCC, 
> DMC, WCC, MinGW). Now, it's also possible to include 
> process.h after gc.h.
> 3. The attached patch is NOT against v7.1 (see note 1).
> 
> Again, for convenience, for interested parties, my tarball 
> containing latest CVS plus pending patches is at:
> http://www.ivmaisoft.com/sources/jcgo/bdwgc72a1-20090219-ivmai.tar.bz2
> 
> Bye.
> 
> 


More information about the Gc mailing list