removed isReadAccessAllowed() calls on each executeOnPooledThread() to reduce number of Reader objects allocated

This commit is contained in:
Alexey Kudravtsev
2016-06-02 19:50:03 +03:00
parent 29cb340db9
commit 15fba5f0d7
@@ -328,7 +328,6 @@ public class ApplicationImpl extends PlatformComponentManagerImpl implements App
return ourThreadExecutorsService.submit(new Callable<T>() {
@Override
public T call() {
assert !isReadAccessAllowed() : describe(Thread.currentThread());
try {
return action.call();
}
@@ -340,7 +339,6 @@ public class ApplicationImpl extends PlatformComponentManagerImpl implements App
}
finally {
Thread.interrupted(); // reset interrupted status
assert !isReadAccessAllowed() : describe(Thread.currentThread());
}
return null;
}