The Trunk: Kernel-dtl.1246.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-dtl.1246.mcz

commits-2
David T. Lewis uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-dtl.1246.mcz

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

Name: Kernel-dtl.1246
Author: dtl
Time: 18 July 2019, 8:07:43.108638 pm
UUID: 0ac79852-6ed3-48c8-8b6e-d76b28bdbf18
Ancestors: Kernel-mt.1245

Characters and small floats are immediate objects in Spur and should not implement #nextObject.

=============== Diff against Kernel-mt.1245 ===============

Item was added:
+ ----- Method: SmallFloat64>>nextObject (in category 'system primitives') -----
+ nextObject
+ "Small floats are immediate objects, and, as such, do not have successors in object memory."
+
+ self shouldNotImplement !


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Kernel-dtl.1246.mcz

David T. Lewis
This prevents VM hanging or crashing on #nextObject. As Levente mentioned,
#nextInstance also should be #shouldNotImplement for all immediates, but
the current (non)implementation seems harmless.

Dave

On Fri, Jul 19, 2019 at 12:07:45AM +0000, [hidden email] wrote:

> David T. Lewis uploaded a new version of Kernel to project The Trunk:
> http://source.squeak.org/trunk/Kernel-dtl.1246.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-dtl.1246
> Author: dtl
> Time: 18 July 2019, 8:07:43.108638 pm
> UUID: 0ac79852-6ed3-48c8-8b6e-d76b28bdbf18
> Ancestors: Kernel-mt.1245
>
> Characters and small floats are immediate objects in Spur and should not implement #nextObject.
>
> =============== Diff against Kernel-mt.1245 ===============
>
> Item was added:
> + ----- Method: SmallFloat64>>nextObject (in category 'system primitives') -----
> + nextObject
> + "Small floats are immediate objects, and, as such, do not have successors in object memory."
> +
> + self shouldNotImplement !
>
>