src/share/vm/oops/arrayOop.cpp

changeset 3500
0382d2b469b2
parent 3335
3c648b9ad052
child 6876
710a3c8b516e
equal deleted inserted replaced
3499:aa3d708d67c4 3500:0382d2b469b2
1 /* 1 /*
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
27 /////////////// Unit tests /////////////// 27 /////////////// Unit tests ///////////////
28 28
29 #ifndef PRODUCT 29 #ifndef PRODUCT
30 30
31 #include "oops/arrayOop.hpp" 31 #include "oops/arrayOop.hpp"
32 #include "oops/oop.inline.hpp"
32 #include "utilities/globalDefinitions.hpp" 33 #include "utilities/globalDefinitions.hpp"
33 34
34 bool arrayOopDesc::check_max_length_overflow(BasicType type) { 35 bool arrayOopDesc::check_max_length_overflow(BasicType type) {
35 julong length = max_array_length(type); 36 julong length = max_array_length(type);
36 julong bytes_per_element = type2aelembytes(type); 37 julong bytes_per_element = type2aelembytes(type);

mercurial