From 5c03f5739e7c83a9b6f37ba9cf0ab744d4cd53d5 Mon Sep 17 00:00:00 2001 From: Sreekala Gopakumar Date: Tue, 11 Jun 2024 21:47:13 +0530 Subject: [PATCH] ThreadMXBean.getTotalThreadAllocatedBytes is implemented https://github.com/eclipse-openj9/openj9-docs/issues/1326 Updated the What's new in version 0.46.0 topic. Incorporated the feedback. Closes #1326 Signed-off-by: Sreekala Gopakumar --- docs/version0.46.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/version0.46.md b/docs/version0.46.md index 9a984cb38c..74406e26e2 100644 --- a/docs/version0.46.md +++ b/docs/version0.46.md @@ -27,6 +27,7 @@ The following new features and notable changes since version 0.45.0 are included - [New binaries and changes to supported environments](#binaries-and-supported-environments) - [MD5 message digest algorithm support for OpenSSL](#md5-message-digest-algorithm-support-for-openssl) +- [Support added for the `com.sun.management.ThreadMXBean.getTotalThreadAllocatedBytes()` API](#support-added-for-the-comsunmanagementthreadmxbeangettotalthreadallocatedbytes-api) ## Features and changes @@ -40,6 +41,12 @@ To learn more about support for OpenJ9 releases, including OpenJDK levels and pl OpenSSL native cryptographic support is added for the MD5 message digest algorithm, providing improved cryptographic performance. OpenSSL support is enabled by default. If you want to turn off support for the MD5 message digest algorithm, set the [`-Djdk.nativedigest`](djdknativedigest.md) system property to `false`. +### Support added for the `com.sun.management.ThreadMXBean.getTotalThreadAllocatedBytes()` API + +With this release, the OpenJ9 VM implementation supports measurement of the total memory allocation for all threads (`com.sun.management.ThreadMXBean.getTotalThreadAllocatedBytes()` API). + +The `getTotalThreadAllocatedBytes()` method now returns the total thread allocated bytes instead of `-1`. + ## Known problems and full release information To see known problems and a complete list of changes between Eclipse OpenJ9 v0.45.0 and v0.46.0 releases, see the [Release notes](https://github.com/eclipse-openj9/openj9/blob/master/doc/release-notes/0.46/0.46.md).