HHH-11420 - Update Byte Buddy to 1.6.6. and use more granular locks on type caches

This commit is contained in:
Rafael Winterhalter 2017-01-23 11:36:02 +01:00 committed by Vlad Mihalcea
parent d9e5edc9c0
commit 2868f1bb09
3 changed files with 4 additions and 6 deletions

View File

@ -10,8 +10,6 @@
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import net.bytebuddy.TypeCache;
import org.hibernate.HibernateException;
@ -73,7 +71,7 @@ public Class<?> call() throws Exception {
.load(clazz.getClassLoader())
.getLoaded();
}
}, clazz);
}, FAST_CLASSES);
fastClass = FAST_CLASSES.insert( clazz.getClassLoader(), clazz.getName(), fastClass );
@ -94,7 +92,7 @@ public Class<?> call() throws Exception {
.load(clazz.getClassLoader())
.getLoaded();
}
}, clazz);
}, BULK_ACCESSORS);
try {
return new ReflectionOptimizerImpl(

View File

@ -114,7 +114,7 @@ public Class<?> call() throws Exception {
.load(persistentClass.getClassLoader())
.getLoaded();
}
}, persistentClass);
}, CACHE);
}
@Override

View File

@ -19,7 +19,7 @@ ext {
cdiVersion = '1.1'
javassistVersion = '3.20.0-GA'
byteBuddyVersion = '1.6.4'
byteBuddyVersion = '1.6.6'
// Wildfly version targeted by module ZIP; Arquillian/Shrinkwrap versions used for CDI testing and testing the module ZIP
wildflyVersion = '10.1.0.Final'