Mercurial > hg > truffle
comparison src/share/vm/oops/arrayOop.cpp @ 6152:958bb4b7be49
Merge
author | asaha |
---|---|
date | Tue, 10 Apr 2012 10:42:34 -0700 |
parents | 0382d2b469b2 |
children |
comparison
equal
deleted
inserted
replaced
6151:e778c29768e6 | 6152:958bb4b7be49 |
---|---|
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); |