Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speedup max direct memory estimation via Unsafe #13643

Merged
merged 2 commits into from
Oct 2, 2023

Commits on Sep 28, 2023

  1. Speedup max direct memory estimation via Unsafe

    Motivation:
    
    PlatformDependent::estimateMaxDirectMemory reflectevly allocates MX Beans to
    detect JVM's arg MaxDirectMemory (often failing to find any, because unconfigured).
    
    Modifications:
    
    Allow unsafe to find Bits's max memory static field and use it as a fast path to detect
    the same direct memory limits used by the JVM runtime
    
    Result:
    
    Faster and less memory hungry (in term of mallocs) startup
    franz1981 committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    13d827b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cf0af2f View commit details
    Browse the repository at this point in the history