-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #331: initial implementation of enableIsNilOptimination for GsD…
…evKit stones
- Loading branch information
1 parent
ff2e52b
commit 8ef5ae5
Showing
5 changed files
with
108 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#========================================================================= | ||
# Copyright (c) 2023 GemTalk Systems, LLC <dhenrich@gemtalksystems.com>. | ||
# | ||
# MIT license: https://github.com/GsDevKit/GsDevKit_home/blob/master/license.txt | ||
#========================================================================= | ||
|
||
# Disable isNil optimization in a 3.7.0 or greater image | ||
# ( see https://github.com/GsDevKit/GsDevKit_upgrade/issues/30) | ||
|
||
! run with topaz -l -T50000 or larger | ||
|
||
level 1 | ||
iferr 1 stk | ||
iferr 2 stack | ||
iferr 3 exit 1 | ||
|
||
set user SystemUser pass swordfish | ||
login | ||
category: 'Private' | ||
classmethod: GsNMethod | ||
_adjustOptimizedSelectors | ||
OptimizedSelectors := #( notNil yourself ). | ||
% | ||
|
||
run | ||
| x | | ||
GsNMethod _adjustOptimizedSelectors . | ||
(x := GsNMethod configurableOptimizedSelectors) = #( notNil yourself ) | ||
ifFalse:[ Error signal: 'wrong value ', x printString ]. | ||
true | ||
% | ||
commit | ||
logout | ||
login | ||
run | ||
"recompile methods that contain an isNil selector pattern ... to ensure method is not optimized" | ||
| cnt | | ||
cnt := 0 . | ||
((ClassOrganizer new substringSearch: 'isNil') at: 1) do:[:meth | | ||
meth recompileFromSource . | ||
GsFile gciLogServer:'recompiled ' , meth printString . | ||
cnt := cnt + 1 . | ||
]. | ||
^ cnt | ||
% | ||
commit | ||
|
||
errorCount | ||
|
||
logout | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters