From: jsimomaa Date: Thu, 14 Dec 2017 06:16:51 +0000 (+0200) Subject: Replace OrientationRestorer TimerTask usage with ScheduledExecutor X-Git-Tag: v1.43.0~136^2~659 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=5998374f7e179cfaf451c220216adc18c823047f;hp=5998374f7e179cfaf451c220216adc18c823047f;p=simantics%2Fplatform.git Replace OrientationRestorer TimerTask usage with ScheduledExecutor Timer can exhaust the system with TimerTask-runnables that are queued up e.g. during computer hibernate and sleep. According to documentation: If an execution is delayed for any reason (such as garbage collection or other background activity), two or more executions will occur in rapid succession to "catch up." In the long run, the frequency of execution will be exactly the reciprocal of the specified period With heavy tasks this is very bad refs #7682 Change-Id: I5a097c8bc5e1ea2a5abe30905b2a46fa8b8386f8 ---