Status: FixProposed
Owner: pavel.krivanek New issue 4405 by pavel.krivanek: PharoKernel generation http://code.google.com/p/pharo/issues/detail?id=4405 This patch adds to the SmalltalkImage method categories PharoKernel and PharoKernel-private. It enables to generate PharoKernel directly from the Core image without need of external scripts. Smalltalk shrinkToKernel Currently it doesn't condense changes (bacause of hanging of CompiledMethod cleanUp when used direclty during the shrinking process). Attachments: SmalltalkImage-PharoKernel.st 1.2 KB SmalltalkImage-PharoKernel-private.st 8.1 KB _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Comment #1 on issue 4405 by pavel.krivanek: PharoKernel generation http://code.google.com/p/pharo/issues/detail?id=4405 Shrinking process setup changed. CompiledMethod cleanUp doesn't hang. It only takes so much time :-) Attachments: SmalltalkImage-PharoKernel.st 1.2 KB SmalltalkImage-PharoKernel-private.st 8.1 KB _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Comment #2 on issue 4405 by [hidden email]: PharoKernel generation http://code.google.com/p/pharo/issues/detail?id=4405 crashes on Cog... (tried both versions). _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Comment #3 on issue 4405 by [hidden email]: PharoKernel generation http://code.google.com/p/pharo/issues/detail?id=4405 unload.st Error: MessageNotUnderstood: SmalltalkImage>>SoundService 161 [:e | | rep | rep := FileStream forceNewFileNamed: '_report_unload.txt'. rep nextPutAll: 'unload.st'; cr. rep nextPutAll: 'Error:'; cr. rep nextPutAll: e asString; cr. rep nextPutAll: thisContext stack size asString. thisContext stack copy withIndexDo: [:stck :i | [rep nextPutAll: i asString; space; nextPutAll: stck asString; cr] ifError: []]. rep close. Smalltalk quitPrimitive] in SmalltalkImage>>privShrinkingProcess 2 BlockClosure>>cull: 3 BlockClosure>>cull:cull: 4 [:ex | errorHandlerBlock cull: ex description cull: ex receiver] in BlockClosure>>ifError: 5 BlockClosure>>cull: 6 [(self tempAt: 2) cull: exception] in MethodContext(ContextPart)>>handleSignal: 7 BlockClosure>>ensure: 8 MethodContext(ContextPart)>>handleSignal: 9 MessageNotUnderstood(Exception)>>signal 10 SmalltalkImage(Object)>>doesNotUnderstand: #SoundService 11 [| packages remove | _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Comment #4 on issue 4405 by pavel.krivanek: PharoKernel generation http://code.google.com/p/pharo/issues/detail?id=4405 damn, sorry, it was wrong version _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Comment #5 on issue 4405 by pavel.krivanek: PharoKernel generation http://code.google.com/p/pharo/issues/detail?id=4405 (No comment was entered for this change.) Attachments: SmalltalkImage-PharoKernel.st 1.3 KB SmalltalkImage-PharoKernel-private.st 8.2 KB _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Comment #6 on issue 4405 by [hidden email]: PharoKernel generation http://code.google.com/p/pharo/issues/detail?id=4405 PharoKernel shrinking report Error: BlockCannotReturn 181 [:e | | rep | rep := FileStream forceNewFileNamed: '_report_unload.txt'. rep nextPutAll: 'PharoKernel shrinking report'; cr. rep nextPutAll: 'Error:'; cr. rep nextPutAll: e asString; cr. rep nextPutAll: thisContext stack size asString. thisContext stack copy withIndexDo: [:stck :i | [rep nextPutAll: i asString; space; nextPutAll: stck asString; cr] ifError: []]. rep close. Smalltalk quitPrimitive] in SmalltalkImage>>privShrinkingProcess 2 BlockClosure>>cull: 3 BlockClosure>>cull:cull: _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Comment #7 on issue 4405 by pavel.krivanek: PharoKernel generation http://code.google.com/p/pharo/issues/detail?id=4405 I see. It does on CogVM, on standard SqueakVM shrinking works _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Comment #8 on issue 4405 by pavel.krivanek: PharoKernel generation http://code.google.com/p/pharo/issues/detail?id=4405 Well, Marcus, the problem lies in the condensing of changes file. So we may start with this version that does the shrinking and saves the image but it doesn't condense the changes file. It works on SqueakVM and Cog. The condensing of changes file works too but it requires starting the image again with a script containing: Smalltalk condenseChanges. Smalltalk saveImageInNewContext. Attachments: SmalltalkImage-PharoKernel-private.st 8.3 KB SmalltalkImage-PharoKernel.st 1.3 KB _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Updates:
Labels: Milestone-1.3 Comment #9 on issue 4405 by [hidden email]: PharoKernel generation http://code.google.com/p/pharo/issues/detail?id=4405 Works! I will add it. _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Updates:
Status: Closed Comment #10 on issue 4405 by [hidden email]: PharoKernel generation http://code.google.com/p/pharo/issues/detail?id=4405 in 13266 _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Free forum by Nabble | Edit this page |