Vanessa Freudenberg uploaded a new version of System to project The Trunk: http://source.squeak.org/trunk/System-codefrau.1437.mcz
==================== Summary ====================
Name: System-codefrau.1437 Author: codefrau Time: 6 December 2023, 5:36:49.489134 pm UUID: e437daf4-9ac8-4645-85b0-e285113f09ab Ancestors: System-mt.1436
Reset WordSize on snapshot, for VMs capable of converting the image between 64 and 32 bits (like SqueakJS).
=============== Diff against System-mt.1436 ===============
Item was changed: ----- Method: SmalltalkImage>>cleanUpSystemAttributeCaches (in category 'housekeeping') ----- cleanUpSystemAttributeCaches "Reset platform-specific values. This MUST BE called directly before the image is snapshotted. Note that this can't safely be done on start-up because Smalltalk is too late in the start-up sequence. See commentary in #getSystemAttribute:."
self flag: #discuss. "mt: Such caches might better be managed by the VM itself. A primitive-based cache protocol could help. On a fresh (VM) start-up, those values would then be nil (or uninitialized) automatically."
+ EndianCache := WordSize := PlatformNameCache := nil.! - EndianCache := PlatformNameCache := nil.!
packages@lists.squeakfoundation.org