netty5/common/src/main/java/io/netty/util/internal
Norman Maurer fd0d06ee39
Replace reflection usage with MethodHandles when performance matters (#10097)
Motivation:

As we have java8 as a minimum target we can use MethodHandles. We should do so when we expect to have a method called multiple times.

Modifications:

- Replace usage of reflection with MethodHandles where it makes sense
- Remove some code which was there to support java < 8

Result:

Faster code
2020-03-11 21:04:40 +01:00
..
logging Prefer Log4J2 over Log4J1 for default InternalLoggerFactory (#9734) 2019-10-30 19:36:03 +01:00
svm Add SVM metadata and minimal substitutions to build graalvm native image applications. (#8963) 2019-04-29 09:12:09 +02:00
AppendableCharSequence.java More strict parsing of initial line / http headers (#10058) 2020-02-26 10:01:41 +01:00
Cleaner.java Allow to free direct buffers on java9 again 2017-04-17 19:40:52 +02:00
CleanerJava6.java Replace reflection usage with MethodHandles when performance matters (#10097) 2020-03-11 21:04:40 +01:00
CleanerJava9.java Replace reflection usage with MethodHandles when performance matters (#10097) 2020-03-11 21:04:40 +01:00
ConstantTimeUtils.java NetUtil IPv6 bugs related to IPv4 and compression 2017-04-25 15:10:38 -07:00
DefaultPriorityQueue.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
EmptyArrays.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
EmptyPriorityQueue.java Java 8 migration: Use diamond operator (#8749) 2019-01-22 16:07:26 +01:00
Hidden.java SSL / BlockHound works out of the box with the default SSL provider (#9969) 2020-01-30 11:50:15 +01:00
InternalThreadLocalMap.java Replace several magic numbers. (#10094) 2020-03-09 11:56:00 +01:00
MacAddressUtil.java Java 8 migration. Remove ThreadLocalProvider and inline java.util.concurrent.ThreadLocalRandom.current() where necessary. (#8762) 2019-01-22 20:14:28 +01:00
MathUtil.java Java 8 migration. Removed custom MathUtil.compare methods (#8748) 2019-01-22 12:37:09 +01:00
NativeLibraryLoader.java Add log level check simply before logging. (#10080) 2020-03-05 14:46:22 +01:00
NativeLibraryUtil.java Fix the tcnative lib loading problem in OSGi 2016-08-16 14:06:01 +02:00
NoOpTypeParameterMatcher.java Use byte code generation if Javassist is available. 2013-02-08 21:45:14 +09:00
ObjectCleaner.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
ObjectPool.java Replace ObjectUtil.checkNonNull(...) with Objects.requireNonNull(...) (#9864) 2019-12-10 11:27:32 +01:00
ObjectUtil.java Replace ObjectUtil.checkNonNull(...) with Objects.requireNonNull(...) (#9864) 2019-12-10 11:27:32 +01:00
OutOfDirectMemoryError.java Allow to create Unsafe ByteBuf implementations that not use a Cleaner to clean the native memory. 2016-06-03 21:20:10 +02:00
PendingWrite.java Use lambdas whenever possible (#9979) 2020-01-30 09:28:24 +01:00
PlatformDependent.java java.security.AccessControlException: access denied ("java.io.FilePermission" "/etc/os-release" "read") (#10018) 2020-02-13 12:02:02 +01:00
PlatformDependent0.java Replace reflection usage with MethodHandles when performance matters (#10097) 2020-03-11 21:04:40 +01:00
PriorityQueue.java Use Netty's DefaultPriorityQueue instead of JDK's PriorityQueue for scheduled tasks 2017-11-10 23:09:32 -08:00
PriorityQueueNode.java HTTP/2 Non Active Stream RFC Corrections 2017-02-01 10:34:27 -08:00
PromiseNotificationUtil.java Add a log level check simply before logging. (#10093) 2020-03-09 08:48:56 +01:00
ReadOnlyIterator.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
RecyclableArrayList.java Use lambdas whenever possible (#9979) 2020-01-30 09:28:24 +01:00
ReferenceCountUpdater.java Centralize internal reference counting logic (#8614) 2019-04-09 16:23:15 +02:00
ReflectionUtil.java Reflective setAccessible(true) will produce scary warnings on the console when using java9+, dont do it 2018-01-30 12:18:34 +01:00
ResourcesUtil.java Adding support for whitespace in resource path in tests (#8606) 2018-12-12 10:29:19 +01:00
SocketUtils.java NetworkInterface.getByInetAddress() may return null on Android platform (#10056) 2020-02-25 09:37:54 +01:00
StringUtil.java Faster decodeHexNibble (#9896) 2019-12-23 21:16:44 +01:00
SuppressJava6Requirement.java Only use static Exception instances when we can ensure addSuppressed … (#9152) 2019-05-17 22:42:53 +02:00
SystemPropertyUtil.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
ThreadExecutorMap.java Use lambdas whenever possible (#9979) 2020-01-30 09:28:24 +01:00
ThrowableUtil.java Java 8 Migration: remove uneccessary if statement (#8755) 2019-01-25 08:57:11 +01:00
TypeParameterMatcher.java Java 8 migration: Use diamond operator (#8749) 2019-01-22 16:07:26 +01:00
UnpaddedInternalThreadLocalMap.java Java 8 migration. Remove ThreadLocalProvider and inline java.util.concurrent.ThreadLocalRandom.current() where necessary. (#8762) 2019-01-22 20:14:28 +01:00
UnstableApi.java Fix typo in UnstableApi javadocs 2016-10-03 11:04:19 +02:00
package-info.java Update license headers 2012-06-04 13:31:44 -07:00