Skip to content

8366020: Assert that java code is not executed during the AOT assembly phase#30345

Open
matias9927 wants to merge 2 commits intoopenjdk:masterfrom
matias9927:aot_assembly_assert_8366020
Open

8366020: Assert that java code is not executed during the AOT assembly phase#30345
matias9927 wants to merge 2 commits intoopenjdk:masterfrom
matias9927:aot_assembly_assert_8366020

Conversation

@matias9927
Copy link
Contributor

@matias9927 matias9927 commented Mar 20, 2026

User code should not be run during the AOT assembly phase and there are already checks in place to assure this. This patch simply adds a debug mode only check. Verified with tier 1-5 tests.


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-8366020: Assert that java code is not executed during the AOT assembly phase (Enhancement - P4)

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 30345

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 20, 2026

👋 Welcome back matsaave! 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 Mar 20, 2026

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

@openjdk openjdk bot added the hotspot-runtime hotspot-runtime-dev@openjdk.org label Mar 20, 2026
@openjdk
Copy link

openjdk bot commented Mar 20, 2026

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

  • hotspot-runtime

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 Mar 20, 2026
@mlbridge
Copy link

mlbridge bot commented Mar 20, 2026

Webrevs

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.

To avoid confusion may you should use "Java code" instead of "user code" in title and comments.

return false;
}

#ifndef PRODUCT
Copy link
Contributor

Choose a reason for hiding this comment

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

Use #ifdef ASSERT instead if you guard for debug VM.

@matias9927 matias9927 changed the title 8366020: Assert that user code is not executed during the AOT assembly phase. 8366020: Assert that java code is not executed during the AOT assembly phase Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Development

Successfully merging this pull request may close these issues.

2 participants