Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.7.0 disable isNil optimization during 3.7.0 upgrade #30

Open
dalehenrich opened this issue Aug 17, 2023 · 0 comments
Open

3.7.0 disable isNil optimization during 3.7.0 upgrade #30

dalehenrich opened this issue Aug 17, 2023 · 0 comments
Assignees

Comments

@dalehenrich
Copy link
Member

dalehenrich commented Aug 17, 2023

in a standard 3.7.0 image, the isNil selector was optimized (i.e., not sent) the adverse effect on the GLASS/GsDevKit ecosystem wasn't noticed until too late in the release cycle to properly address the issues, so the decision was made to turn off isNil optimization in seaside extents for the time being ...

Individual developers can choose to turn isNil optimization on after upgrading and determine if their code base is affected or not as well as measure the benefits of the optimization in their application.

The

Log in as SystemUser and run the following code to enable isNil optimization in the base. Then login as each of your users with and run the just recompile doit:

category: 'Private'
classmethod: GsNMethod
_adjustOptimizedSelectors
  OptimizedSelectors := #( isNil notNil yourself ).
%
run
| x |
GsNMethod _adjustOptimizedSelectors .
(x := GsNMethod configurableOptimizedSelectors) = #( isNil 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 optimized"
 | cnt | 
 cnt := 0 .
 ((ClassOrganizer new substringSearch: 'isNil') at: 1) do:[:meth |
   meth recompileFromSource .
   GsFile gciLogServer:'recompiled  ' , meth printString .
   cnt := cnt + 1 .
 ].
 ^ cnt
%
commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant