Skip to content

Commit c3d2157

Browse files
committed
switched off synchronization workaround for jruby 1.7.13
1 parent 587d54d commit c3d2157

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

RubyScript/src/org/knime/ext/jruby/RubyScriptNodeModel.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class RubyScriptNodeModel extends NodeModel {
7777

7878
private boolean m_snippetMode;
7979

80-
private static Object m_ScriptingContainerLock = new Object();
80+
// private static Object m_ScriptingContainerLock = new Object();
8181

8282
public class ScriptError {
8383
public int lineNum;
@@ -281,7 +281,7 @@ protected final BufferedDataTable[] execute(final BufferedDataTable[] inData,
281281
// Container creation is failed for the first of two parallel executed.
282282
// Fails only first time!
283283
// ***********************************
284-
synchronized(m_ScriptingContainerLock){
284+
// synchronized(m_ScriptingContainerLock){
285285
container = new ScriptingContainer(
286286
LocalContextScope.THREADSAFE);
287287
container.setCompatVersion(CompatVersion.RUBY2_0);
@@ -319,7 +319,7 @@ protected final BufferedDataTable[] execute(final BufferedDataTable[] inData,
319319
container.put("$exec", exec);
320320
container.put("$node", this);
321321
container.put("PLUGIN_PATH", rubyPluginPath);
322-
}
322+
// }
323323

324324
// ********** Script execution ***************
325325
String script_fn = "node_script.rb";

0 commit comments

Comments
 (0)