<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.1">
</HEAD>
<BODY>
Bertram,<BR>
<BR>
It appears that I am on 6.12.<BR>
Strange, as I thought I have check-out the HEAD by following the instructions on the wiki:<BR>
<BR>
<BLOCKQUOTE>
    darcs get --partial <A HREF="http://darcs.haskell.org/ghc">http://darcs.haskell.org/ghc</A><BR>
</BLOCKQUOTE>
<BR>
The wiki does not tell explicitly what will be checked out, so I expected it to be HEAD.<BR>
<BR>
With kind regards,<BR>
Denys Rtveliashvili<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
Denys Rtveliashvili wrote:
&gt; OK, the code I have checked out from the repository contains this in
&gt; &quot;rts/sm/Storage.h&quot;:
[global pinned_object_block variable]

Odd. This was changed in ghc head by a patch dating Dec 1st 2009:

Tue Dec  1 17:03:21 CET 2009  Simon Marlow &lt;<A HREF="mailto:marlowsd@gmail.com">marlowsd@gmail.com</A>&gt;
  * Make allocatePinned use local storage, and other refactorings
  
  This is a batch of refactoring to remove some of the GC's global
  state, as we move towards CPU-local GC.  
...
    - allocatePinned() was still allocating from global storage and
      taking a lock each time, now it uses local storage. 
      (mallocForeignPtrBytes should be faster with -threaded).
...

which turned pinned_object_block into a per-capability variable.

So which version of ghc are you looking at?

regards,

Bertram
_______________________________________________
Glasgow-haskell-users mailing list
<A HREF="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</A>
<A HREF="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>