comparison src/share/vm/oops/arrayOop.cpp @ 4873:0382d2b469b2

7013347: allow crypto functions to be called inline to enhance performance Reviewed-by: kvn
author never
date Wed, 01 Feb 2012 16:57:08 -0800
parents 3c648b9ad052
children
comparison
equal deleted inserted replaced
4872:aa3d708d67c4 4873: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);