changeset 35203 | 3e70c7dc0772 |
parent 34182 | 82d1b1696016 |
child 35492 | c8c0273e6b91 |
--- a/hotspot/src/share/vm/code/codeCache.cpp Mon Dec 21 14:09:21 2015 +0000 +++ b/hotspot/src/share/vm/code/codeCache.cpp Wed Dec 16 22:06:52 2015 -0800 @@ -321,6 +321,10 @@ ReservedCodeSpace rs(r_size, rs_align, rs_align > 0); + if (!rs.is_reserved()) { + vm_exit_during_initialization("Could not reserve enough space for code cache"); + } + // Initialize bounds _low_bound = (address)rs.base(); _high_bound = _low_bound + rs.size();