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

Experiment with replacing textual representation in classfile with method that builds the model #274

Open
wants to merge 13 commits into
base: code-reflection
Choose a base branch
from

Conversation

mabbay
Copy link
Member

@mabbay mabbay commented Nov 8, 2024

Experiment with replacing textual representation in classfile with method that builds the model.
Note: This PR is based on changes from #272.


Progress

  • Change must not contain extraneous whitespace

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 274

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/babylon/pull/274.diff

Using Webrev

Link to Webrev Comment

@mabbay mabbay self-assigned this Nov 8, 2024
@bridgekeeper
Copy link

bridgekeeper bot commented Nov 8, 2024

👋 Welcome back mabbay! A progress list of the required criteria for merging this PR into code-reflection 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 8, 2024

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

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

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

Experiment with replacing textual representation in classfile with method that builds the model

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 3 new commits pushed to the code-reflection branch:

  • 86dfc36: Aggregated work on Verifier and BytecodeLift deconstruction
  • a40e0f2: Simplify Interpreter invocation
  • 1d23ceb: Support conversions of primitives in testing context

Please see this link for an up-to-date comparison between the source branch of this pull request and the code-reflection branch.
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 code-reflection branch, type /integrate in a new comment.

@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Nov 8, 2024
@mlbridge
Copy link

mlbridge bot commented Nov 8, 2024

Webrevs

test/jdk/java/lang/reflect/code/writer/TestOpMethod.java Outdated Show resolved Hide resolved
}

@Test(dataProvider = "classes")
void test(byte[] cd) throws Throwable {
Copy link
Member

Choose a reason for hiding this comment

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

That's a good start, but i suspect what we need here is also a main method, so we can run this over many classes via some script. Thereby we get more (albeit manual) test exposure and can get statistics class file sizes before and after i.e. we can run the script over all the compiled test class files in lang and jdk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Pull request is ready to be integrated rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

2 participants