[m-rev.] diff: fix initialization order bug for hlc.par.gc

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Oct 31 03:06:21 AEDT 2002


On 30-Oct-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> Estimated hours taken: 8
> Branches: main
> 
> Fix a bug which caused a seg-fault with the Win32 version of the
> pthread library.
> 
> runtime/mercury_wrapper.c:
> 	Move MR_init_thread_stuff() so that it is called before
> 	MR_init_memory() as MR_init_memory() refers to
> 	MR_engine_base_key which is initialised by
> 	MR_init_thread_stuff().

Adding a comment would be a good idea...
it could save the next guy 8 hours debugging time ;-)

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list