Mercurial > hg > graal-jvmci-8
diff src/share/vm/prims/jni.cpp @ 4070:6fd81579526f
7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
Summary: arrayOopDesc::max_array_length() should return a value that does not overflow a size_t if it is converted to bytes.
Reviewed-by: kvn, dholmes
author | brutisso |
---|---|
date | Mon, 31 Oct 2011 08:01:20 +0100 |
parents | 436b4a3231bf |
children | 04b9a2566eec 3c648b9ad052 |
line wrap: on
line diff
--- a/src/share/vm/prims/jni.cpp Fri Oct 28 13:04:10 2011 -0400 +++ b/src/share/vm/prims/jni.cpp Mon Oct 31 08:01:20 2011 +0100 @@ -5042,7 +5042,8 @@ void execute_internal_vm_tests() { if (ExecuteInternalVMTests) { assert(QuickSort::test_quick_sort(), "test_quick_sort failed"); - tty->print_cr("All tests passed"); + assert(arrayOopDesc::test_max_array_length(), "test_max_array_length failed"); + tty->print_cr("All internal VM tests passed"); } }