JDK-8014611 : reserve_and_align() assumptions are invalid on windows
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs24
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2013-05-14
  • Updated: 2013-07-28
  • Resolved: 2013-05-23
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 7 Other
7u25Fixed hs24Fixed
Related Reports
Relates :  
Description
ReservedSpace::reserve_and_align() assumes that memory reserved by os::reserve_memory() can be released in separate pieces at separate times.  This assumption holds on posix-like systems where reserved_memory() calls mmap(), but does not hold on windows.

The problem is currently latent because reserve_and_align() is not called on windows, but the fix for JDK-6725414 will change that.
Comments
This issue does not affect hs25 (reserve_and_align() was removed).
23-05-2013

Regression test notes - this problem was exposed by the changes for JDK-6725714, which cause the JVM to abort at startup on windows without this fix Thus many existing tests will detect a regression once JDK-6725714 is fixed.
23-05-2013

If methods in ReservedSpace must do alignment, save the original reserved address and size and use them when releasing memory.
14-05-2013