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
This commit is contained in:
parent
1a83bfc389
commit
e525ba8e6c
2 changed files with 16 additions and 15 deletions
|
@ -1,3 +1,8 @@
|
|||
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>
|
||||
|
||||
PR libgcj/25265
|
||||
|
|
|
@ -80,22 +80,18 @@ final class VMCompiler
|
|||
private static Vector precompiledMapFiles;
|
||||
|
||||
// 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
|
||||
// time, and it avoids potential deadlocks due to class loader
|
||||
// oddities.
|
||||
private static final MessageDigest md5Digest;
|
||||
// a new one.
|
||||
|
||||
static
|
||||
{
|
||||
try
|
||||
{
|
||||
md5Digest = MessageDigest.getInstance("MD5");
|
||||
}
|
||||
catch (NoSuchAlgorithmException _)
|
||||
{
|
||||
md5Digest = null;
|
||||
}
|
||||
}
|
||||
// We don't use
|
||||
//
|
||||
// md5Digest = MessageDigest.getInstance("MD5");
|
||||
//
|
||||
// here because that loads a great deal of security provider code as
|
||||
// interpreted bytecode -- before we're able to use this class to
|
||||
// load precompiled classes.
|
||||
|
||||
private static final MessageDigest md5Digest
|
||||
= new gnu.java.security.provider.MD5();
|
||||
|
||||
static
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue