netty5/microbench/src/main
Scott Mitchell a7f7d9c8e0 Remove unsafe char[] access in PlatformDependent
Motivation:
PlatformDependent attempts to use reflection to get the underlying char[] (or byte[]) from String objects. This is fragile as if the String implementation does not utilize the full array, and instead uses a subset of the array, this optimization is invalid. OpenJDK6 and some earlier versions of OpenJDK7 String have the capability to use a subsection of the underlying char[].

Modifications:
- PlatformDependent should not attempt to use the underlying array from String (or other data types) via reflection

Result:
PlatformDependent hash code generation for CharSequence does not depend upon specific JDK implementation details.
2016-06-30 08:58:28 -07:00
..
java/io/netty Remove unsafe char[] access in PlatformDependent 2016-06-30 08:58:28 -07:00
resources Have microbenchmarks produce a deployable artifact. Fix some minor miscellaneous issues. 2015-04-17 10:04:26 -07:00