ppkarwasz opened a new issue, #1646:
URL: https://github.com/apache/logging-log4j2/issues/1646

   ## Description
   
   The `MemoryMappedFileAppender` fails to unmap its buffers on JRE 9+: the 
unmapping code (cf. 
[`MemoryMappedFileAppender#unsafeUnmap()`](https://github.com/apache/logging-log4j2/blob/92538f9752651f73e7bb66e490efc233959fa143/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/MemoryMappedFileManager.java#L225)
 requires:
   ```
   --add-opens java.base/java.nio=ALL-UNNAMED
   --add-exports java.base/jdk.internal.ref=ALL-UNNAMED
   ```
   These two permissions are not given by default.
   
   Since Java 9 the cleaner is accessible through 
`sun.misc.Unsafe#invokeCleaner` instead.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to