Reuse compiled groovy script for more efficiency
this entire computation appears rather pointless since the result isn't getting used
Integrated the latest
Merge branch 'master' of github.com:jenkinsci/jenkins
provide a means to synchronize on the completion of the maintenance, mainly for tests
Fixed a test failure.

Turns out in the new executor on-demand code, queue maintenance happens so quickly that even when a job is submitted with delay 0,
it can still fail the test if the check happens when "new GregorianCalendar()" returns the same value as "top.timestamp".

I'm relaxing that check
This module is no more