[squeak-dev] The Trunk: Kernel-ct.1480.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Jun 10 17:15:39 UTC 2022


Christoph Thiede uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-ct.1480.mcz

==================== Summary ====================

Name: Kernel-ct.1480
Author: ct
Time: 10 June 2022, 7:15:36.249345 pm
UUID: 47dc9827-6701-734e-bdfb-252d57df215a
Ancestors: Kernel-mt.1479

Complements Chronology-Core-ct.80 (remove Delay>>#busyWait).

=============== Diff against Kernel-mt.1479 ===============

Item was removed:
- ----- Method: Delay>>busyWait (in category 'delaying') -----
- busyWait
- 	"BEWARE!! This method is more precise than #wait, but it sacrifices many CPU cycles for that precision. Also note that the GC runs more often. Also note that only processes with a higher priority can run while waiting.
- 	
- 	The following lists the precision (in milliseconds) of #wait on a Microsoft Surface Pro 6, Windows 10 21H1, OSVM 202104182333:
- 		100 -> 100
- 		50 -> 51.1 ... 102.2%
- 		10 -> 11.6 ... 105.5% ... maybe use #busyWait
- 		5 -> 5.93 ... 118.6% ... use #busyWait but check process priorities
- 		1 -> 1.41 ... 141.0% ... use #busyWait but check process priorities
- 	
- 	As of July 2021, the shortest delay that we can guarantee on all platforms is still 1 millisecond as the value of #utcMicrosecondClock might not change any faster than that. For more information, see http://lists.squeakfoundation.org/pipermail/squeak-dev/2021-July/215928.html"
- 	
- 	"[5 milliSeconds busyWait] bench"
- 
- 	| proceedTime |
- 	proceedTime := Time utcMicrosecondClock + (delayDuration "milliseconds" * 1000).
- 	[Time utcMicrosecondClock >= proceedTime] whileFalse.!



More information about the Squeak-dev mailing list