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

8257885: [TESTBUG] java/foreign/TestSegments.java fails on x86_32 #1689

Closed
wants to merge 1 commit into from

Conversation

DamonFool
Copy link
Member

@DamonFool DamonFool commented Dec 8, 2020

Hi all,

java/foreign/TestSegments.java fails on x86_32 due to '-Xmx4G'.
The reason is that -Xmx4G is invalid maximum heap size for 32-bit platforms.
The current implimentation only supports maximum 3800M on 32-bit systems [1].

The fix just change '-Xmx4G' to '-Xmx3500M'.

Testing:

  • java/foreign/TestSegments.java on Linux/x86_{32,64}

Thanks.
Best regards,
Jie

[1] https://github.com/openjdk/jdk/blob/master/src/hotspot/os/posix/os_posix.cpp#L567


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8257885: [TESTBUG] java/foreign/TestSegments.java fails on x86_32

Download

$ git fetch https://git.openjdk.java.net/jdk pull/1689/head:pull/1689
$ git checkout pull/1689

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 8, 2020

👋 Welcome back jiefu! 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.

@DamonFool
Copy link
Member Author

/issue add JDK-8257885
/test
/label add core-libs
/cc core-libs

@openjdk openjdk bot added the rfr Pull request is ready for review label Dec 8, 2020
@openjdk
Copy link

openjdk bot commented Dec 8, 2020

@DamonFool This issue is referenced in the PR title - it will now be updated.

@openjdk openjdk bot added the core-libs core-libs-dev@openjdk.org label Dec 8, 2020
@openjdk
Copy link

openjdk bot commented Dec 8, 2020

@DamonFool
The core-libs label was successfully added.

@openjdk
Copy link

openjdk bot commented Dec 8, 2020

@DamonFool The core-libs label was already applied.

@mlbridge
Copy link

mlbridge bot commented Dec 8, 2020

Webrevs

@shipilev
Copy link
Member

shipilev commented Dec 8, 2020

-Xm3800M could still fail on many 32-bit systems, for example where native libraries are located in the middle of address space. I think it is safer to @require it. In fact, I did it an hour ago here #1688 :)

@DamonFool
Copy link
Member Author

-Xm3800M could still fail on many 32-bit systems, for example where native libraries are located in the middle of address space. I think it is safer to @require it. In fact, I did it an hour ago here #1688 :)

The test just limits the maximum memory to be used, not the minimum memory.
So I think the foreign api should also work on 32-bit platforms.

@shipilev
Copy link
Member

shipilev commented Dec 8, 2020

-Xm3800M could still fail on many 32-bit systems, for example where native libraries are located in the middle of address space. I think it is safer to @require it. In fact, I did it an hour ago here #1688 :)

The test just limits the maximum memory to be used, not the minimum memory.
So I think the foreign api should also work on 32-bit platforms.

Well, I think the test still fails with your fix: https://github.com/DamonFool/jdk/runs/1516430124 -- as I suspected it would :(

@DamonFool
Copy link
Member Author

-Xm3800M could still fail on many 32-bit systems, for example where native libraries are located in the middle of address space. I think it is safer to @require it. In fact, I did it an hour ago here #1688 :)

The test just limits the maximum memory to be used, not the minimum memory.
So I think the foreign api should also work on 32-bit platforms.

Well, I think the test still fails with your fix: https://github.com/DamonFool/jdk/runs/1516430124 -- as I suspected it would :(

OK.
It seems the test is brittle on 32-bit platforms.
I agree with you now.
Thanks.

@DamonFool DamonFool closed this Dec 8, 2020
@DamonFool DamonFool deleted the JDK-8257885 branch December 8, 2020 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-libs core-libs-dev@openjdk.org rfr Pull request is ready for review
2 participants