Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM #2286

Closed
wants to merge 7 commits into from

Conversation

phohensee
Copy link
Member

@phohensee phohensee commented Nov 21, 2023

I'd like to backport the definition and implementation of com.sun.management.ThreadMXBean.getTotalThreadAllocatedBytes to 11u. The backport CSR is JDK-8320375. A follow-up bugfix backport of JDK-8313081 will be done following this backport. The combined backports have been in production at Amazon for two months with no issues. The backport uses the reserved6 slot in jmm.h in order to preserve binary compatibility with 11u. Per current policy, there is no update to JMM_VERSION in jmm.h and the new method is marked

@since 11.0.23

I added MonitoringSupport_lock because it didn't exist in 11u.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change requires CSR request JDK-8320375 to be approved
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8304074 needs maintainer approval

Issues

  • JDK-8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM (Enhancement - P4 - Approved)
  • JDK-8320375: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM (CSR)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/2286/head:pull/2286
$ git checkout pull/2286

Update a local copy of the PR:
$ git checkout pull/2286
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/2286/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2286

View PR using the GUI difftool:
$ git pr show -t 2286

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/2286.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 21, 2023

👋 Welcome back phh! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot changed the title Backport 3eced01f9efe2567a07b63343f8559683a2d0517 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM Nov 21, 2023
@openjdk
Copy link

openjdk bot commented Nov 21, 2023

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport csr Pull request needs approved CSR before integration rfr Pull request is ready for review labels Nov 21, 2023
@mlbridge
Copy link

mlbridge bot commented Nov 21, 2023

Webrevs

Copy link
Member

@simonis simonis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Copy link
Member

@simonis simonis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the since tag. Still good.

@openjdk
Copy link

openjdk bot commented Dec 5, 2023

⚠️ @phohensee This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@openjdk openjdk bot removed the csr Pull request needs approved CSR before integration label Dec 5, 2023
@phohensee
Copy link
Member Author

/approval request Almost clean backport of purely additive JMX feature (doesn't change existing code). In production at Amazon for over two months.

@openjdk
Copy link

openjdk bot commented Dec 6, 2023

@phohensee
8304074: The approval request has been created successfully.

@openjdk openjdk bot added the approval label Dec 6, 2023
@openjdk
Copy link

openjdk bot commented Dec 7, 2023

@phohensee This change now passes all automated pre-integration checks.

After integration, the commit message for the final commit will be:

8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM

Reviewed-by: simonis

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 48 new commits pushed to the master branch:

  • c0575b8: 8237777: "Dumping core ..." is shown despite claiming that "# No core dump will be written."
  • 8191f62: 8316030: Update Libpng to 1.6.40
  • db1d944: 8281149: (fs) java/nio/file/FileStore/Basic.java fails with java.lang.RuntimeException: values differ by more than 1GB
  • 2d7dd47: 8207214: Broken links in JDK API serialized-form page
  • e4504a4: Merge
  • 09b402a: 8319187: Add three eMudhra emSign roots
  • e793bdd: 8234309: LFGarbageCollectedTest.java fails with parse Exception
  • 082fb9c: 8219612: [TESTBUG] compiler.codecache.stress.Helper.TestCaseImpl can't be defined in different runtime package as its nest host
  • 3b2d165: 8186610: move ModuleUtils to top-level testlibrary
  • 1080258: 8218754: JDK-8068225 regression in JDIBreakpointTest
  • ... and 38 more: https://git.openjdk.org/jdk11u-dev/compare/f2488a31e002af3e0a7a866c91cbdd28be2d9a1f...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval labels Dec 7, 2023
@phohensee
Copy link
Member Author

/integrate

@openjdk
Copy link

openjdk bot commented Dec 7, 2023

Going to push as commit 31064b1.
Since your change was applied there have been 52 commits pushed to the master branch:

  • 8a390c8: 8281717: Cover logout method for several LoginModule
  • a9536ae: 8226905: unproblem list applications/ctw/modules/* tests on windows
  • c77e538: 8251904: vmTestbase/nsk/sysdict/vm/stress/btree/btree010/btree010.java fails with ClassNotFoundException: nsk.sysdict.share.BTree0LLRLRLRRLR
  • 050bbdb: 8225471: Test utility jdk.test.lib.util.FileUtils.areAllMountPointsAccessible needs to tolerate duplicates
  • c0575b8: 8237777: "Dumping core ..." is shown despite claiming that "# No core dump will be written."
  • 8191f62: 8316030: Update Libpng to 1.6.40
  • db1d944: 8281149: (fs) java/nio/file/FileStore/Basic.java fails with java.lang.RuntimeException: values differ by more than 1GB
  • 2d7dd47: 8207214: Broken links in JDK API serialized-form page
  • e4504a4: Merge
  • 09b402a: 8319187: Add three eMudhra emSign roots
  • ... and 42 more: https://git.openjdk.org/jdk11u-dev/compare/f2488a31e002af3e0a7a866c91cbdd28be2d9a1f...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Dec 7, 2023
@openjdk openjdk bot closed this Dec 7, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Dec 7, 2023
@openjdk
Copy link

openjdk bot commented Dec 7, 2023

@phohensee Pushed as commit 31064b1.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@phohensee phohensee deleted the backport-8304074 branch December 14, 2023 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

2 participants