comparison src/share/vm/oops/arrayOop.cpp @ 9057:b44df6c5942c

Added tag jdk8u232-ga for changeset 12177d88b89c
author andrew
date Tue, 15 Oct 2019 21:37:52 +0100
parents 3c648b9ad052
children
comparison
equal deleted inserted replaced
6:32f52d92c6e3 7:08c3f7030cb7
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);