JDK-8257989 : Error in gtest os_page_size_for_region_unaligned after 8257588
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-12-09
  • Updated: 2020-12-17
  • Resolved: 2020-12-09
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 16
16 b28Fixed
Related Reports
Relates :  
Description
https://github.com/openjdk/jdk/pull/1522#discussion_r539501002

```
    for (size_t s = os::page_sizes().largest(); s != 0; s = os::page_sizes().next_smaller(s)) {
      const size_t expected = os::page_sizes().next_smaller(s);
      if (expected != 0) {
        size_t actual = os::page_size_for_region_unaligned(expected - 17, 1);
```
mgkwill:
 
@tstuefe should expected here be s ?

It should.

Comments
Changeset: b977a7b8 Author: Marcus G K Williams <marcus.williams@intel.com> Committer: Thomas Stuefe <stuefe@openjdk.org> Date: 2020-12-09 18:59:09 +0000 URL: https://git.openjdk.java.net/jdk/commit/b977a7b8
09-12-2020