JDK-8243506 : SharedBaseAddress is ignored by -Xshare:dump
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-04-23
  • Updated: 2024-10-17
  • Resolved: 2020-06-02
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 15
15 b26Fixed
Related Reports
Relates :  
Relates :  
Description
Even if -XX:SharedBaseAddress=0x900000000 is specified in the command-line, we always relocate the archive to the default value of SharedBaseAddress (as specified inside globals.hpp):

$ java -Xshare:dump -XX:SharedBaseAddress=0x900000000 -Xlog:cds=debug | grep 08000
[1.191s][debug][cds] Expanding shared spaces by 1048576 bytes [total   8388608 bytes ending at 0x900800000]
[1.590s][debug][cds] Relocating archive from [0x0000000900000000 - 0x0000000900b6f6f0 ] to [0x0000000800000000 - 0x0000000800b6f6f0 ]
[1.609s][debug][cds] Shared file region  0: 0x00006150 bytes, addr 0x0000000800000000 file offset 0x00001000
[1.609s][debug][cds] Shared file region  1: 0x00430230 bytes, addr 0x0000000800007000 file offset 0x00008000
[1.631s][debug][cds] mc  space:     24912 [  0.2% of total] out of     28672 bytes [ 86.9% used] at 0x0000000800000000
[1.631s][debug][cds] rw  space:   4391472 [ 33.7% of total] out of   4395008 bytes [ 99.9% used] at 0x0000000800007000

This behavior was unintentionally introduced in JDK-8231610.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/37c816b004e5 User: iklam Date: 2020-06-02 08:22:49 +0000
02-06-2020

http://cr.openjdk.java.net/~iklam/jdk15/8243506-SharedBaseAddress-ignored.v01/ Before: $ java -Xshare:dump -XX:SharedBaseAddress=0x900000000 -Xlog:cds=debug | grep 'out of' [1.608s][debug][cds] mc space: 25104 [ 0.2% of total] out of 28672 bytes [ 87.6% used] at 0x0000000800000000 [1.608s][debug][cds] rw space: 4392632 [ 33.4% of total] out of 4395008 bytes [ 99.9% used] at 0x0000000800007000 [1.608s][debug][cds] ro space: 7657912 [ 58.3% of total] out of 7659520 bytes [100.0% used] at 0x0000000800438000 [1.608s][debug][cds] bm space: 215144 [ 1.6% of total] out of 215144 bytes [100.0% used] [1.608s][debug][cds] ca0 space: 507904 [ 3.9% of total] out of 507904 bytes [100.0% used] at 0x00000007bf800000 [1.608s][debug][cds] oa0 space: 335872 [ 2.6% of total] out of 335872 bytes [100.0% used] at 0x00000007bf000000 [1.608s][debug][cds] total : 13134568 [100.0% of total] out of 13144064 bytes [ 99.9% used] After: $ java -Xshare:dump -XX:SharedBaseAddress=0x900000000 -Xlog:cds=debug | grep 'out of' [1.623s][debug][cds] mc space: 25120 [ 0.2% of total] out of 28672 bytes [ 87.6% used] at 0x0000000900000000 [1.623s][debug][cds] rw space: 4392472 [ 33.4% of total] out of 4395008 bytes [ 99.9% used] at 0x0000000900007000 [1.623s][debug][cds] ro space: 7657712 [ 58.3% of total] out of 7659520 bytes [100.0% used] at 0x0000000900438000 [1.623s][debug][cds] bm space: 217088 [ 1.7% of total] out of 217088 bytes [100.0% used] at 0x0000000000000000 [1.623s][debug][cds] ca0 space: 507904 [ 3.9% of total] out of 507904 bytes [100.0% used] at 0x00000007bf800000 [1.623s][debug][cds] oa0 space: 335872 [ 2.6% of total] out of 335872 bytes [100.0% used] at 0x00000007bf000000 [1.623s][debug][cds] total : 13134224 [100.0% of total] out of 13144064 bytes [ 99.9% used]
05-05-2020

This might also be fixed in JDK-8243392.
29-04-2020

ILW = MLM = P4
28-04-2020