Advertisement
Guest User

bug in squeak 4.2/4.3 Cog/non-Cog

a guest
Sep 5th, 2011
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. i :=1.
  2. myRectArray :=Array new:10.
  3. rnd := [(-500 to: 500) atRandom].
  4.  
  5.     myGrid := PasteUpMorph new openInWorld.
  6.     myGrid height: 1100;width:1100.
  7.     aRec := myGrid center.
  8.     myRectArray at: i put: RectangleMorph new.
  9.     1to: i do: [:count|  myGrid addMorph: (myRectArray at: count)].
  10.  
  11.  
  12.     [Transcript show: (Time millisecondsToRun:[
  13.         1 to:1000 do: [:j|
  14.             1 to: 1000 do: [:k|
  15.             1to: i do: [:l| (myRectArray at: l) center: aRec +(rnd value@rnd value)].
  16.             ]]]);cr] fork.
  17.  
  18. "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
  19. myGrid delete.
  20. Smalltalk garbageCollect.
  21. "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
  22. i :=2.
  23.     myGrid := PasteUpMorph new openInWorld.
  24.     myGrid height: 1100;width:1100.
  25.     aRec := myGrid center.
  26.     myRectArray at: i put: RectangleMorph new.
  27.     1to: i do: [:count|  myGrid addMorph: (myRectArray at: count)].
  28.  
  29.  
  30.     [Transcript show: (Time millisecondsToRun:[
  31.         1 to:1000 do: [:j|
  32.             1 to: 1000 do: [:k|
  33.             1to: i do: [:l| (myRectArray at: l) center: aRec +(rnd value@rnd value)].
  34.             ]]]);cr] fork.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement