home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,452 of 2,753   
   Marco van de Voort to Ori Bernstein   
   Re: Register Allocators and Garbage Coll   
   14 Sep 08 09:54:21   
   
   From: marcov@stack.nl   
      
   On 2008-09-10, Ori Bernstein  wrote:   
   >   
   > If we get a context switch between lines 2 and 3, then the only record   
   > of a root pointing to the newly allocated value is in register %eax,   
   > and is hidden from the debugger thread.   
   >   
   > How do garbage collectors deal with this problem typically? Does the   
   > compiler have to insert spill points which force the values onto the   
   > stack and invoke the GC?  Am I just on crack thinking that there might   
   > be a problem?   
      
   I'm no GC expert, but I'd say that you detect roots to weed out certain   
   generation of blocks that can be cleaned.   
      
   So the solution is simple, don't add the "active" generation of blocks to   
   the generations to be cleaned.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca