The GitHub Actions job "Pull Requests" on 
pekko.git/refactor/replace-reflection-with-methodhandles has failed.
Run started by GitHub user He-Pin (triggered by He-Pin).

Head commit for run:
062f859503fb1c8a4d65778d60de92e88014c7de / 虎鸣 <[email protected]>
perf: replace java.lang.reflect with MethodHandle/VarHandle across core modules

Motivation:
java.lang.reflect (Method.invoke, Constructor.newInstance, Field.get/set)
prevents JIT inlining. MethodHandle/VarHandle provide equivalent
functionality with better performance characteristics.

Modification:
- Replace reflection with MethodHandle/VarHandle in ReflectiveDynamicAccess,
  Reflect, VirtualThreadSupport, ProtobufSerializer, LineNumbers,
  ByteBufferCleaner, and ExtensionsImpl
- Cache MethodHandles.lookup() values to avoid repeated lookups
- Remove unnecessary setAccessible(true) calls
- Use invoke() for zero-arg method handles

Result:
Better JIT inlining opportunities across core modules.

Tests:
- sbt "actor / Test / compile"
- sbt "actor-typed / Test / compile"

References:
Refs #3300

Report URL: https://github.com/apache/pekko/actions/runs/28966400015

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to