[armedbear-cvs] r13060 - trunk/abcl/src/org/armedbear/lisp/scripting
Ville Voutilainen
vvoutilainen at common-lisp.net
Sat Nov 27 21:21:16 UTC 2010
Author: vvoutilainen
Date: Sat Nov 27 16:21:16 2010
New Revision: 13060
Log:
Make the getter for the engine synchronized, as the engine
is nowadays lazy-initialized.
Modified:
trunk/abcl/src/org/armedbear/lisp/scripting/AbclScriptEngineFactory.java
Modified: trunk/abcl/src/org/armedbear/lisp/scripting/AbclScriptEngineFactory.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/scripting/AbclScriptEngineFactory.java (original)
+++ trunk/abcl/src/org/armedbear/lisp/scripting/AbclScriptEngineFactory.java Sat Nov 27 16:21:16 2010
@@ -115,7 +115,7 @@
return sb.toString();
}
- public ScriptEngine getScriptEngine() {
+ public synchronized ScriptEngine getScriptEngine() {
if (THE_ONLY_ONE_ENGINE == null) {
THE_ONLY_ONE_ENGINE = new AbclScriptEngine();
}
More information about the armedbear-cvs
mailing list