< prev index next >
src/share/vm/oops/objArrayKlass.hpp
Print this page
rev 8910 : full patch for jfr
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
+ * 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.
@@ -94,10 +94,15 @@
static ObjArrayKlass* cast(Klass* k) {
assert(k->oop_is_objArray(), "cast to ObjArrayKlass");
return (ObjArrayKlass*) k;
}
+ static const ObjArrayKlass* cast(const Klass* k) {
+ assert(k->oop_is_objArray(), "cast to ObjArrayKlass");
+ return static_cast<const ObjArrayKlass*>(k);
+ }
+
// Sizing
static int header_size() { return sizeof(ObjArrayKlass)/HeapWordSize; }
int size() const { return ArrayKlass::static_size(header_size()); }
// Initialization (virtual from Klass)
< prev index next >