Skip to content

Unsafe unavailability severely affect Netty 4.2 heap ByteBuf access performance #15485

@franz1981

Description

@franz1981

This has been reported in Vert-x as eclipse-vertx/vert.x#5645 (comment):

  • Unsafe's unavailability makes safe init and accessibility checks to perform volatile accesses, which prevent hoisting of array's bound checks
  • Unsafe unavailability force PlatformDependent's byte[] multi-bytes accesses to NOT be performed in batch

Both the issues can hit pretty badly newer JDK versions (+24) - we should find a way to leverage VarHandle as much as possible, if available.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions