This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new ab8187e993 Comment on use of Unsafe, which can be removed eventually
ab8187e993 is described below
commit ab8187e993d9714f34d2a90f15cc95dff99c8c6a
Author: remm <[email protected]>
AuthorDate: Thu Feb 19 12:03:22 2026 +0100
Comment on use of Unsafe, which can be removed eventually
---
java/org/apache/tomcat/util/buf/ByteBufferUtilsUnsafe.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/java/org/apache/tomcat/util/buf/ByteBufferUtilsUnsafe.java
b/java/org/apache/tomcat/util/buf/ByteBufferUtilsUnsafe.java
index 1ce3db0932..6b30d2b1b7 100644
--- a/java/org/apache/tomcat/util/buf/ByteBufferUtilsUnsafe.java
+++ b/java/org/apache/tomcat/util/buf/ByteBufferUtilsUnsafe.java
@@ -28,6 +28,7 @@ import org.apache.tomcat.util.res.StringManager;
/*
* This functionality is in a separate class so it is only loaded if
cleanDirectBuffer() is called. This is because the
* use of unsafe triggers an unavoidable warning with Java 24.
+ * Note: Use (either mandatory or optional) of direct ByteBuffer can be
removed once tomcat-native is dropped.
*/
class ByteBufferUtilsUnsafe {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]