Commit e525ba8e by Andrew Haley Committed by Andrew Haley

VMCompiler.java: Directly generate a new instance of gnu.java.security.provider.MD5.

2005-12-12  Andrew Haley  <aph@redhat.com>

        * java/lang/VMCompiler.java: Directly generate a new instance of
        gnu.java.security.provider.MD5.

From-SVN: r108421
parent 1a83bfc3
2005-12-12 Andrew Haley <aph@redhat.com>
* java/lang/VMCompiler.java: Directly generate a new instance of
gnu.java.security.provider.MD5.
2005-12-08 Andrew Haley <aph@redhat.com> 2005-12-08 Andrew Haley <aph@redhat.com>
PR libgcj/25265 PR libgcj/25265
......
...@@ -80,22 +80,18 @@ final class VMCompiler ...@@ -80,22 +80,18 @@ final class VMCompiler
private static Vector precompiledMapFiles; private static Vector precompiledMapFiles;
// We create a single MD5 engine and then clone it whenever we want // We create a single MD5 engine and then clone it whenever we want
// a new one. This is simpler than trying to find a new one each // a new one.
// time, and it avoids potential deadlocks due to class loader
// oddities. // We don't use
private static final MessageDigest md5Digest; //
// md5Digest = MessageDigest.getInstance("MD5");
static //
{ // here because that loads a great deal of security provider code as
try // interpreted bytecode -- before we're able to use this class to
{ // load precompiled classes.
md5Digest = MessageDigest.getInstance("MD5");
} private static final MessageDigest md5Digest
catch (NoSuchAlgorithmException _) = new gnu.java.security.provider.MD5();
{
md5Digest = null;
}
}
static static
{ {
......
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