/** * Ensures that the current thread is running from {@link CpsVmExecutorService} * * @see CpsVmThreadOnly */ private void assertVmThread() { assert current()==this; }
/** * Obtains the Groovy compiler to be used for compiling user script * in the CPS-transformed and sandboxed manner. */ private GroovyShell $getShell() { return CpsThreadGroup.current().getExecution().getShell(); }
CpsThreadGroup c = CpsThreadGroup.current(); if (c !=null) {