Skip to content

Conversation

@albertnetymk
Copy link
Member

@albertnetymk albertnetymk commented Nov 11, 2025

Trivial removing obsoleted code for unsupported arch.

Test: tier1


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8371643: Remove ThreadLocalAllocBuffer::_reserve_for_allocation_prefetch (Enhancement - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28240/head:pull/28240
$ git checkout pull/28240

Update a local copy of the PR:
$ git checkout pull/28240
$ git pull https://git.openjdk.org/jdk.git pull/28240/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 28240

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28240.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 11, 2025

👋 Welcome back ayang! 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
Copy link

openjdk bot commented Nov 11, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title 8371643 8371643: Remove ThreadLocalAllocBuffer::_reserve_for_allocation_prefetch Nov 11, 2025
@openjdk openjdk bot added the hotspot hotspot-dev@openjdk.org label Nov 11, 2025
@openjdk
Copy link

openjdk bot commented Nov 11, 2025

@albertnetymk The following label will be automatically applied to this pull request:

  • hotspot

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the rfr Pull request is ready for review label Nov 11, 2025
@mlbridge
Copy link

mlbridge bot commented Nov 11, 2025

Webrevs

@vnkozlov
Copy link
Contributor

What happens if TLAB is at the end of heap page? Are you sure "prefetch" instructions on all OpenJDK platforms can touch unmapped memory? I see PPC can use AllocatePrefetchStyle == 3.

@vnkozlov
Copy link
Contributor

Please ask all OpenJDK platforms supporters to test these changes.

Note, when this code was introduced we did not have so many platforms.

Copy link
Contributor

@vnkozlov vnkozlov left a comment

Choose a reason for hiding this comment

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

You missed code in HS agent: src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/VM.java

@albertnetymk
Copy link
Member Author

albertnetymk commented Nov 11, 2025

What happens if TLAB is at the end of heap page? Are you sure "prefetch" instructions on all OpenJDK platforms can touch unmapped memory? I see PPC can use AllocatePrefetchStyle == 3.

In every <arch>.ad file, there is // Must be safe to execute with invalid address (cannot fault) for prefetching.

I searched online that all currently supported platforms don't fault on prefetching invalid addresses.

@openjdk openjdk bot added the serviceability serviceability-dev@openjdk.org label Nov 11, 2025
@openjdk
Copy link

openjdk bot commented Nov 11, 2025

@albertnetymk serviceability has been added to this pull request based on files touched in new commit(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot hotspot-dev@openjdk.org rfr Pull request is ready for review serviceability serviceability-dev@openjdk.org

Development

Successfully merging this pull request may close these issues.

2 participants