Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't rely on softref queue, explicitly remove dead entry when found,…

… fixes #444
  • Loading branch information...
commit 167a73857a746e8dbeeb6d9ea8f99083aca7dc69 1 parent cc8372f
Rich Hickey richhickey authored
2  src/jvm/clojure/lang/DynamicClassLoader.java
View
@@ -54,6 +54,8 @@ public Class defineClass(String name, byte[] bytes, Object srcForm){
Class c = cr.get();
if(c != null)
return c;
+ else
+ classCache.remove(name, cr);
}
return super.findClass(name);
}
1  src/jvm/clojure/lang/Keyword.java
View
@@ -36,6 +36,7 @@ public static Keyword intern(Symbol sym){
if(existingk != null)
return existingk;
//entry died in the interim, do over
+ table.remove(sym, existingRef);
return intern(sym);
}
Please sign in to comment.
Something went wrong with that request. Please try again.