google / google/conscrypt

Use sun.misc.Unsafe instead of JNI field access

Open
#941 3 comments 0 reactions 0 assignees View on GitHub
needs more info
Dominant language
Java
Stars
1.4k
Forks
326
Avg merge
16h 22m
Merged PRs (30d)
17

Description

The methods of `sun.misc.Unsafe` are compiler intrinsics, and will be much faster than any JNI call. We can use `sun.misc.Unsafe` to access both private fields and native memory.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.