[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Read Only issue
From: |
Gwenael Casaccio |
Subject: |
[Help-smalltalk] Read Only issue |
Date: |
Thu, 19 May 2011 13:28:23 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 |
Hi Paolo,
There is an issue in ProcessBeingTerminated class>>#initialize.
It tries to change a RO compiled method:
diff --git a/kernel/SysExcept.st b/kernel/SysExcept.st
index afd923d..9660f7c 100644
--- a/kernel/SysExcept.st
+++ b/kernel/SysExcept.st
@@ -251,6 +251,7 @@ Notification subclass: ProcessBeingTerminated [
ProcessBeingTerminated class >> initialize [
(UndefinedObject>>#'__terminate')
+ makeReadOnly: false;
descriptor: ((MethodInfo new: 1)
methodClass: UndefinedObject;
selector: #'__terminate';
@@ -268,7 +269,8 @@ Notification subclass: ProcessBeingTerminated [
#found ]
ifFalse: [nil] ].
[ :context | ] });
- yourself)
+ yourself);
+ makeReadOnly: true
]
description [
Gwen
- [Help-smalltalk] Read Only issue,
Gwenael Casaccio <=