This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Cygwin libstdc++ plan (operator new/delete replacement)


Christopher Faylor wrote:
> On Sun, Jun 28, 2009 at 06:47:51PM +0100, Dave Korn wrote:

>>>> Index: winsup/cygwin/globals.cc

>>>> -  DWORD unused[7];
>>>> +  DWORD unused[6];
>>>> +  struct per_process_cxx_malloc *cxx_malloc;

> I thought there was precedent for putting it first but the unused field
> has oscillated for years.  How about if we just leave it alone and
> repurpose the forkee field?  

  Then it will be zeroed out on startup by old executables:

> @@ -64,8 +96,6 @@
>    else
>      u->impure_ptr_ptr = &_impure_ptr;	/* Older DLLs need this. */
>  
> -  u->forkee = 0;			/* This should only be set in dcrt0.cc
> -					   when the process is actually forked */
>    u->main = f;
>  
>    /* These functions are executed prior to main.  They are just stubs unless the

  Argh!  Patch to follow shortly :-)

    cheers,
      DaveK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]