< prev index next >

src/share/vm/oops/typeArrayKlass.hpp

Print this page
rev 8910 : full patch for jfr

*** 1,7 **** /* ! * Copyright (c) 1997, 2013, 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, 2019, 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.
*** 91,102 **** virtual Klass* array_klass_impl(bool or_null, TRAPS); public: // Casting from Klass* static TypeArrayKlass* cast(Klass* k) { ! assert(k->oop_is_typeArray(), "cast to TypeArrayKlass"); ! return (TypeArrayKlass*) k; } // Naming static const char* external_name(BasicType type); --- 91,106 ---- virtual Klass* array_klass_impl(bool or_null, TRAPS); public: // Casting from Klass* static TypeArrayKlass* cast(Klass* k) { ! return const_cast<TypeArrayKlass*>(cast(const_cast<const Klass*>(k))); ! } ! ! static const TypeArrayKlass* cast(const Klass* k) { ! //assert(k->is_typeArray_klass(), "cast to TypeArrayKlass"); ! return static_cast<const TypeArrayKlass*>(k); } // Naming static const char* external_name(BasicType type);
< prev index next >