[Pkg] The Trunk: Kernel-cmm.1114.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Sep 1 17:24:58 UTC 2017


Chris Muller uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-cmm.1114.mcz

==================== Summary ====================

Name: Kernel-cmm.1114
Author: cmm
Time: 1 September 2017, 12:24:33.854299 pm
UUID: 0bc56c90-144a-401c-915c-c68060661f03
Ancestors: Kernel-cmm.1113

Revert cmm.1113 due to objections.

=============== Diff against Kernel-cmm.1113 ===============

Item was changed:
  ----- Method: Object>>pin (in category 'pinning') -----
  pin
+ 	"The VM's garbage collector routinely moves objects as it reclaims and compacts
+ 	 memory. But it can also pin an object so that it will not be moved, which can make
+ 	 it easier to pass objects out through the FFI.  Objects are unpinnned when created.
+ 	 This method ensures an object is pinned, and answers whether it was already pinned."
+ 	^self setPinned: true!
- 	"Ensure the receiver is pinned and answer whether it was pinned."
- 	^ self pinned: true!

Item was removed:
- ----- Method: Object>>pinned: (in category 'pinning') -----
- pinned: aBoolean
- 	"The VM's garbage collector routinely moves objects as it reclaims and compacts memory. But it can also pin an object so that it will not be moved, which can make it easier to pass objects out through the FFI.  Objects are unpinnned when created.
- 	Answer whether the receiver was pinned."
- 	^ self setPinned: aBoolean!

Item was changed:
  ----- Method: Object>>setPinned: (in category 'private') -----
  setPinned: aBoolean
+ 	"The VM's garbage collector routinely moves objects as it reclaims and compacts
+ 	 memory. But it can also pin an object so that it will not be moved, which can make
+ 	 it easier to pass objects out through the FFI.  Objects are unpinnned when created.
+ 	 This primitive either pins or unpins an object, and answers if it was already pinned."
- 	"Primitive which pins or unpins the receiver and answers whether it was already pinned."
  	<primitive: 184 error: ec>
  	^self primitiveFailed!

Item was changed:
  ----- Method: Object>>unpin (in category 'pinning') -----
  unpin
+ 	"The VM's garbage collector routinely moves objects as it reclaims and compacts
+ 	 memory. But it can also pin an object so that it will not be moved, which can make
+ 	 it easier to pass objects out through the FFI.  Objects are unpinnned when created.
+ 	 This method ensures an object is unpinned, and answers whether it was pinned."
+ 	^self setPinned: false!
- 	"Ensure the receiver is unpinned and answer whether it was pinned."
- 	^ self pinned: false!



More information about the Packages mailing list