< prev index next >
src/share/vm/oops/typeArrayOop.hpp
Print this page
rev 9803 : 8146401: Clean up oop.hpp: add inline directives and fix header files
*** 1,7 ****
/*
! * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 158,169 ****
return align_object_size((intptr_t)size_in_words);
}
public:
! int object_size() {
! TypeArrayKlass* tk = TypeArrayKlass::cast(klass());
! return object_size(tk->layout_helper(), length());
! }
};
#endif // SHARE_VM_OOPS_TYPEARRAYOOP_HPP
--- 158,166 ----
return align_object_size((intptr_t)size_in_words);
}
public:
! int object_size();
};
#endif // SHARE_VM_OOPS_TYPEARRAYOOP_HPP
< prev index next >