JDK-8262952 : [macos_aarch64] os::commit_memory failure
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: aarch64
  • Submitted: 2021-03-03
  • Updated: 2021-05-24
  • Resolved: 2021-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b23Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8265113 :  
Description
Testing https://github.com/openjdk/jdk/pull/2200 reveals this failure in gtest/GTestWrapper.java: 

open/test/hotspot/gtest/runtime/test_os.cpp:376: Failure
Value of: os::commit_memory((char*)q, stripe_len, executable)
  Actual: false
Expected: true
open/test/hotspot/gtest/runtime/test_os.cpp:376: Failure
Value of: os::commit_memory((char*)q, stripe_len, executable)
  Actual: false
Expected: true

----------System.err:(12/801)----------
java.lang.AssertionError: gtest execution failed; exit code = 2. the failed tests: [os::release_multi_mappings_vm, os::release_multi_mappings_vm]
	at GTestWrapper.main(GTestWrapper.java:97)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.base/java.lang.Thread.run(Thread.java:831)


[2021-02-28T17:15:34,593Z] [ RUN      ] os.release_multi_mappings_vm
[2021-02-28T17:15:34,593Z] open/test/hotspot/gtest/runtime/test_os.cpp:376: Failure
[2021-02-28T17:15:34,593Z] Value of: os::commit_memory((char*)q, stripe_len, executable)
[2021-02-28T17:15:34,593Z]   Actual: false
[2021-02-28T17:15:34,593Z] Expected: true
[2021-02-28T17:15:34,593Z] open/test/hotspot/gtest/runtime/test_os.cpp:376: Failure
[2021-02-28T17:15:34,593Z] Value of: os::commit_memory((char*)q, stripe_len, executable)
[2021-02-28T17:15:34,593Z]   Actual: false
[2021-02-28T17:15:34,593Z] Expected: true
[2021-02-28T17:15:34,593Z] A
[2021-02-28T17:15:34,593Z] B
[2021-02-28T17:15:34,593Z] C
[2021-02-28T17:15:34,593Z] [  FAILED  ] os.release_multi_mappings_vm (0 ms)
[2021-02-28T17:15:34,593Z] [ RUN      ] os.release_one_mapping_multi_commits_vm
[2021-02-28T17:15:34,593Z] A
[2021-02-28T17:15:34,593Z] B
[2021-02-28T17:15:34,593Z] C
[2021-02-28T17:15:34,593Z] D
[2021-02-28T17:15:34,593Z] [       OK ] os.release_one_mapping_multi_commits_vm (0 ms)
[2021-02-28T17:15:34,593Z] [ RUN      ] os.show_mappings_small_range_vm
[2021-02-28T17:15:34,593Z] [       OK ] os.show_mappings_small_range_vm (1 ms)
[2021-02-28T17:15:34,593Z] [ RUN      ] os.show_mappings_full_range_vm
[2021-02-28T17:15:34,593Z] [       OK ] os.show_mappings_full_range_vm (0 ms)
[2021-02-28T17:15:34,593Z] [ RUN      ] os.os_pagesizes_vm
[2021-02-28T17:15:34,593Z] 16k
Comments
Changeset: fadf5804 Author: Gerard Ziemski <gziemski@openjdk.org> Date: 2021-05-18 14:44:12 +0000 URL: https://git.openjdk.java.net/jdk/commit/fadf58043c10e4fd98dfdb35256f5efc6d3cd366
18-05-2021