RFR: 8261028: ZGC: SIGFPE when MaxVirtMemFraction=0

Jie Fu jiefu at openjdk.java.net
Wed Feb 3 11:05:56 UTC 2021


Hi all,

The SIGFPE was caused by this line [1] when MaxVirtMemFraction=0.
But according to this comment [2], 0 should not be allowed for MaxVirtMemFraction.

Thanks.
Best regards,
Jie

[1] https://github.com/openjdk/jdk/blob/master/src/hotspot/share/gc/z/zAddressSpaceLimit.cpp#L51
[2] https://github.com/openjdk/jdk/blob/master/src/hotspot/share/gc/shared/gc_globals.hpp#L345

-------------

Commit messages:
 - 8261028: ZGC: SIGFPE when MaxVirtMemFraction=0

Changes: https://git.openjdk.java.net/jdk/pull/2374/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2374&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8261028
  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2374.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2374/head:pull/2374

PR: https://git.openjdk.java.net/jdk/pull/2374



More information about the hotspot-gc-dev mailing list