Skip to content

sun.misc.Unsafe::allocateMemory has been called by io.netty.util.internal.PlatformDependent #15343

Closed

Description

@jamesfredley

Issue description

When running Grails 7 on Java 25

WARNING: A terminally deprecated method in sun.misc.Unsafe has been called

WARNING: sun.misc.Unsafe::allocateMemory has been called by io.netty.util.internal.PlatformDependent0$2 (file:/C:/Users/james/.gradle/caches/modules-2/files-2.1/io.netty/netty-common/4.1.128.Final/da61c7f6318a1a1170e5f2f4daa45657bc9be423/netty-common-4.1.128.Final.jar)

WARNING: Please consider reporting this to the maintainers of class io.netty.util.internal.PlatformDependent0$2

WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release

Activity

  1. added this to the grails:8.0.0-M1 milestone on Jan 25, 2026
  2. jamesfredley commented on Feb 19, 2026

    @jamesfredley
    ContributorAuthor
    tasks.withType(JavaExec).configureEach {
        // java 25 workaround - https://github.com/apache/grails-core/issues/15216
        jvmArgs '--enable-native-access=ALL-UNNAMED'
        // workaround https://github.com/apache/grails-core/issues/15343
        jvmArgs '--add-opens=java.base/sun.misc=ALL-UNNAMED'
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions