JDK-7142641 : -Xshared:on fails on ARM
  • Type: Bug
  • Component: embedded
  • Sub-Component: hotspot
  • Affected Version: hs23
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: arm
  • Submitted: 2012-02-03
  • Updated: 2024-02-20
  • Resolved: 2012-03-07
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.
Other
hs24 b02Fixed
Related Reports
Relates :  
Description
Using -Xshare:dump followed by -Xshare:on fails with

An error has occurred while processing the shared archive file.
Unable to map shared space.
Error occurred during initialization of VM
Unable to use shared archive.

Comments
Making some old comments public: Dean Long - 2012-02-03 14:30 .... The kernel reports the page size as 4096, but mmap wants the fixed memory address and file offset to match with a 16kb alignment. Vladimir Danushevsky - 2012-02-07 07:19 Seems like linaro kernel introduces certain memory mapping constraints for systems with VIPT aliasing caches. Same constraints apply to older Ubuntu kernel (starting from 2.6.39) when ARMv6K support is configured in. iMX53 seems to carry L1 I-cache aliasing policy. from dmesg: CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache Dean Long - 2012-02-14 09:00 Making the mapping private might be a quick workaround. The proper fix probably requires adjustments to how we choose the virtual address region.
20-02-2024

EVALUATION http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/9eaf473fff9b
22-03-2012

EVALUATION <moved to correct sub-CR>
22-03-2012

EVALUATION Change to MAP_PRIVATE from MAP_SHARED fixes the problem. However for a read-only mapping these flags should be irrelevant.
01-03-2012

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-emb/hotspot/rev/9eaf473fff9b
01-03-2012