JDK-8231968 : getCurrentThreadAllocatedBytes default implementation s/b getThreadAllocatedBytes
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2019-10-07
  • Updated: 2020-12-04
  • Resolved: 2019-10-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14 Other
11.0.10-oracleFixed 13.0.6Resolved 14 b21Fixed openjdk8u282Fixed
Related Reports
CSR :  
Relates :  
Description
JDK-8231209 made the default implementation of getCurrentThreadAllocatedBytes be to throw UnsupportedOperationException. However because getCurrentThreadAllocatedBytes is defined to be getThreadAllocatedBytes(Thread.currentThread().getId()), the default implementation should be to return the result of getThreadAllocatedBytes(Thread.currentThread().getId()).


Comments
Fix request (13u) Requesting backport to 13u as follow-up fix for JDK-8231209. CSR for 13u is approved: JDK-8257410. The patch applies cleanly. Tested with ThreadMXBean tests and tier1.
04-12-2020

Fix Request (8u). This is the second of a pair of backports: the other is JDK-8231209. For this patch, see the approved CSR JDK-8247814 for compatibility and risk discussion. Review approval: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-September/012667.html
15-09-2020

Fix Request (11u). This is second of a pair of backport patches: the other is JDK-8247806. For this patch, see the approved CSR JDK-8247810 for compatibility and risk discussion. The patch applies cleanly.
10-07-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/5bb426e9acc4 User: phh Date: 2019-10-24 01:43:41 +0000
24-10-2019