src/share/vm/runtime/virtualspace.cpp

changeset 5255
a837fa3d3f86
parent 5019
b294421fa3c5
child 5578
4c84d351cca9
child 6461
bdd155477289
     1.1 --- a/src/share/vm/runtime/virtualspace.cpp	Mon Jun 10 11:30:51 2013 +0200
     1.2 +++ b/src/share/vm/runtime/virtualspace.cpp	Thu Jun 13 11:16:38 2013 -0700
     1.3 @@ -533,11 +533,13 @@
     1.4             lower_high() + lower_needs <= lower_high_boundary(),
     1.5             "must not expand beyond region");
     1.6      if (!os::commit_memory(lower_high(), lower_needs, _executable)) {
     1.7 -      debug_only(warning("os::commit_memory failed"));
     1.8 +      debug_only(warning("INFO: os::commit_memory(" PTR_FORMAT
     1.9 +                         ", lower_needs=" SIZE_FORMAT ", %d) failed",
    1.10 +                         lower_high(), lower_needs, _executable);)
    1.11        return false;
    1.12      } else {
    1.13        _lower_high += lower_needs;
    1.14 -     }
    1.15 +    }
    1.16    }
    1.17    if (middle_needs > 0) {
    1.18      assert(lower_high_boundary() <= middle_high() &&
    1.19 @@ -545,7 +547,10 @@
    1.20             "must not expand beyond region");
    1.21      if (!os::commit_memory(middle_high(), middle_needs, middle_alignment(),
    1.22                             _executable)) {
    1.23 -      debug_only(warning("os::commit_memory failed"));
    1.24 +      debug_only(warning("INFO: os::commit_memory(" PTR_FORMAT
    1.25 +                         ", middle_needs=" SIZE_FORMAT ", " SIZE_FORMAT
    1.26 +                         ", %d) failed", middle_high(), middle_needs,
    1.27 +                         middle_alignment(), _executable);)
    1.28        return false;
    1.29      }
    1.30      _middle_high += middle_needs;
    1.31 @@ -555,7 +560,9 @@
    1.32             upper_high() + upper_needs <= upper_high_boundary(),
    1.33             "must not expand beyond region");
    1.34      if (!os::commit_memory(upper_high(), upper_needs, _executable)) {
    1.35 -      debug_only(warning("os::commit_memory failed"));
    1.36 +      debug_only(warning("INFO: os::commit_memory(" PTR_FORMAT
    1.37 +                         ", upper_needs=" SIZE_FORMAT ", %d) failed",
    1.38 +                         upper_high(), upper_needs, _executable);)
    1.39        return false;
    1.40      } else {
    1.41        _upper_high += upper_needs;

mercurial