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

Can one determine whether heap is normal or large somehow from installed release [Windows] #153

Closed
tushev opened this issue Aug 1, 2020 · 6 comments
Labels
question Further information is requested
Milestone

Comments

@tushev
Copy link

tushev commented Aug 1, 2020

I need to determine whether installed release is of normal- or large-heap type.

Is it possible somehow, for instance, from a release file?

@aahlenst aahlenst transferred this issue from adoptium/temurin-build Aug 1, 2020
@aahlenst aahlenst added the question Further information is requested label Aug 1, 2020
@aahlenst
Copy link
Contributor

aahlenst commented Aug 1, 2020

@pshipton Do you know of any option? If not, would probably a good idea to add it to the version output.

@pshipton
Copy link

pshipton commented Aug 1, 2020

You can't tell from the release file output. The -version output does indicate "Compressed References" or not. The difference in the build is the directory structure contains either a compressedrefs directory or a default directory (default for 32-bit). Where exactly that is in the structure depends on whether it's Java 8 or Java 11+, and whether it's Windows or some other platform. On Windows the directory is in the jre/bin directory, or in bin if there is no jre directory.

You could open an issue at https://github.com/eclipse/openj9/issues to see about adding something to the release file, but note the OpenJ9 project is actively working on not having a separate large heap build. It's functional but not yet performant.

@tushev
Copy link
Author

tushev commented Aug 1, 2020

Thank you very much! This is enough for my task.

@tushev
Copy link
Author

tushev commented Sep 25, 2020

@pshipton Still need one more clarification - does default for 32-bit tells that it's normal heap?

i.e., the algorithm looks like:
if x64 => presence of compressedrefs = normal heap; default = large heap
if x32 => presence of default = normal heap

@pshipton
Copy link

Correct, there is only one type for 32-bit.

@tushev
Copy link
Author

tushev commented Sep 25, 2020

@pshipton Thank you!

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

No branches or pull requests

4 participants