[Mono-devel-list] patch as interp.c needs metadata_section initialized - revised patch

Bernie Solomon bernard at ugsolutions.com
Mon Jul 21 20:47:30 EDT 2003


This is a revised patch with this change in as well. 

Bernie Solomon
  ----- Original Message ----- 
  From: Laurent Morichetti 
  To: mono-devel-list at lists.ximian.com 
  Sent: Monday, July 21, 2003 5:09 PM
  Subject: Re: [Mono-devel-list] patch as interp.c needs metadata_section initialized


  Then, should calc_offset use metadata_section instead of metadata_lock?

  Bernie Solomon <bernard at ugsolutions.com> wrote: The interpreter isn't initializing metadata_section in the latest CVS code. I attach a patch to do so.

    Bernie Solomon
    Index: interp.c
    ===================================================================
    RCS file: /mono/mono/mono/interpreter/interp.c,v
    retrieving revision 1.244
    diff -u -p -r1.244 interp.c
    --- interp.c 20 Jul 2003 18:20:30 -0000 1.244
    +++ interp.c 21 Jul 2003 23:28:03 -0000
    @@ -4506,6 +4506,8 @@ quit_function (MonoDomain *domain, gpoin

    }

    +static CRITICAL_SECTION ms;
    +
    int 
    main (int argc, char *argv [])
    {
    @@ -4582,7 +4584,8 @@ main (int argc, char *argv [])
    mono_install_stack_walk (interp_walk_stack);
    mono_runtime_install_cleanup (quit_function);

    - InitializeCriticalSection (&metadata_lock);
    + metadata_section = &ms;
    + InitializeCriticalSection (metadata_section);
    domain = mono_init (file);
    mono_runtime_init (domain, NULL, NULL);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030721/73a4f1e4/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: interp_diffs.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030721/73a4f1e4/attachment.txt 


More information about the Mono-devel-list mailing list