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

[jvm-run] use target specified jdk when invoking run #8492

Closed

Conversation

baroquebobcat
Copy link
Contributor

Problem

jvm-run ignores the target specific platform when running a target.

Related #8419

Solution

Use the target platform for distribution lookup instead of using the default. Pass the platform specific args to jvm_options.

Result

The specified jdk is used for execution and the specified jdk's args are used.

Copy link
Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@cosmicexplorer cosmicexplorer left a comment

Choose a reason for hiding this comment

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

Does this close #8419?

@stuhood
Copy link
Member

stuhood commented Oct 21, 2019

Does this close #8419?

IIRC that was closed by another PR... will resolve.

@stuhood stuhood force-pushed the nhoward/jvm_run_platform branch from 3bffc70 to 581eef7 Compare October 28, 2019 21:33
@stuhood
Copy link
Member

stuhood commented Oct 28, 2019

There were some test flakes: rebased to rerun.

@stuhood
Copy link
Member

stuhood commented Oct 29, 2019

@baroquebobcat : It looks like there are some actual test failures in here.

@baroquebobcat
Copy link
Contributor Author

I'll take a look.

@stuhood
Copy link
Member

stuhood commented Nov 9, 2019

Sooo. Shoot. It occurred to me that we had discussed renaming test_platform to runtime_platform and using that here (to differentiate the "compilation" platform from the runtime platform used for running or testing).

Is that something you want to do here...?

@baroquebobcat
Copy link
Contributor Author

Hm. After doing some exploring, I think I want to try and hoist the JvmPlatform references here and other places into JvmTask and maybe drop this. Then I can do the runtime_platform changes in a more constrained way.

@baroquebobcat
Copy link
Contributor Author

One of the other issues here is that platform isn't a perfect fit for describing which java to run on, since source/target aren't a great abstraction for that. It feels like a stronger relationship between distribution and platform would make sense, or maybe adding more distributiony options to platform would help. eg allowing platforms to declare version ranges.

I don't think this needs to be resolved to support multi-jdk builds, but it would be good to have the configuration here be clearer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants