From af84b3d056648dfdbb68486db8dbb37bfcb12ae0 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 19 Jan 2005 23:56:27 +0000 Subject: 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 --- libjava/java/lang/VMCompiler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libjava/java') diff --git a/libjava/java/lang/VMCompiler.java b/libjava/java/lang/VMCompiler.java index 98efc7e..3eb4491 100644 --- a/libjava/java/lang/VMCompiler.java +++ b/libjava/java/lang/VMCompiler.java @@ -1,5 +1,5 @@ /* 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) -- cgit v1.1