From fb9f5cf8cd23239d4e38c1717dcd7901408132f8 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 28 Jul 2008 10:23:03 +0000 Subject: [PATCH] Add more synchronization to avoid memory race conditions. --- src/helma/framework/core/Application.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helma/framework/core/Application.java b/src/helma/framework/core/Application.java index b8aeb882..75b9e207 100644 --- a/src/helma/framework/core/Application.java +++ b/src/helma/framework/core/Application.java @@ -314,7 +314,7 @@ public final class Application implements Runnable { * * @param ignoreDirs comma separated list of directory names to ignore */ - public void init(final String ignoreDirs) + public synchronized void init(final String ignoreDirs) throws DatabaseException, IllegalAccessException, InstantiationException, ClassNotFoundException, InterruptedException { @@ -356,7 +356,7 @@ public final class Application implements Runnable { } } - private void initInternal() + private synchronized void initInternal() throws DatabaseException, IllegalAccessException, InstantiationException, ClassNotFoundException { running = true;