Commit af84b3d0 by Tom Tromey Committed by Tom Tromey

VMCompiler.java (compileClass): Ignore UnknownError.

	* java/lang/VMCompiler.java (compileClass): Ignore UnknownError.
	* gnu/gcj/runtime/natSharedLibLoader.cc (finalize): Only dlclose
	if 'handler' is valid.

From-SVN: r93927
parent 4366cf6d
2005-01-19 Tom Tromey <tromey@redhat.com>
* java/lang/VMCompiler.java (compileClass): Ignore UnknownError.
* gnu/gcj/runtime/natSharedLibLoader.cc (finalize): Only dlclose
if 'handler' is valid.
2005-01-17 Tom Tromey <tromey@redhat.com>
* java/text/MessageFormat.java (scanString): Changed how quoting
......
// natSharedLibLoader.cc - Implementation of SharedLibHelper native methods.
/* Copyright (C) 2001, 2003, 2004 Free Software Foundation
/* Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation
This file is part of libgcj.
......@@ -122,7 +122,8 @@ gnu::gcj::runtime::SharedLibHelper::finalize()
{
_Jv_FreeCoreChain ((_Jv_core_chain *) core_chain);
#ifdef HAVE_DLOPEN
dlclose (handler);
if (handler)
dlclose (handler);
#endif
}
......
/* VMClassLoader.java -- Reference implementation of compiler interface
Copyright (C) 2004 Free Software Foundation
Copyright (C) 2004, 2005 Free Software Foundation
This file is part of GNU Classpath.
......@@ -202,6 +202,11 @@ final class VMCompiler
catch (Exception _)
{
}
catch (UnknownError _)
{
// SharedLibHelper will throw UnknownError if the dlopen
// fails for some reason. We ignore it and continue on.
}
}
if (! useCompiler || ! canUseCompiler)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment