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

[22.3] Backports for January CPU release #638

Merged
merged 6 commits into from
Dec 18, 2023

Commits on Dec 18, 2023

  1. Use synchronized data structures for reachability handlers registration

    Prevent data races in reachability handlers registration when using
    `-H:-RunReachabilityHandlersConcurrently`.
    
    Closes oracle#5868
    
    (cherry picked from commit 777cb82)
    zakkak committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    c629840 View commit details
    Browse the repository at this point in the history
  2. Throw exception for null in RuntimeJNIAccess/RuntimeReflection reg.

    Don't allow null values to be passed to the `register` method of
    `RuntimeJNIAccess` and `RuntimeReflection`. Since these are public APIs
    GraalVM should either handle null values (by ignoring them in this case)
    or throw a `NullPointerException` before creating an asynchronous task
    to perform the registration in the analysis, which then results in
    `NullPointerException`s being thrown later when it's no longer possible
    to understand where the null value originate from.
    
    (cherry picked from commit e6c12dd)
    zakkak committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    08c1d09 View commit details
    Browse the repository at this point in the history
  3. Fix style.

    (cherry picked from commit d621dbd)
    fniephaus authored and zakkak committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    2f90e1a View commit details
    Browse the repository at this point in the history
  4. Move null checks to the beginning of register methods.

    Not before the register methods, which can miss cases, nor later on in a runnable.
    
    (cherry picked from commit f94551a)
    fniephaus authored and zakkak committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    158239a View commit details
    Browse the repository at this point in the history
  5. Apply non-null strategy to JNIAccessFeature.

    (cherry picked from commit d996f32)
    fniephaus authored and zakkak committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    cdc404c View commit details
    Browse the repository at this point in the history
  6. Use Objects.requireNonNull() in ConditionalConfigurationRegistry.

    (cherry picked from commit 0ba6cc2)
    fniephaus authored and zakkak committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    88fcde3 View commit details
    Browse the repository at this point in the history