equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2019, 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. |
393 } |
393 } |
394 return secondaries; |
394 return secondaries; |
395 } |
395 } |
396 } |
396 } |
397 |
397 |
398 bool ObjArrayKlass::compute_is_subtype_of(Klass* k) { |
|
399 if (!k->is_objArray_klass()) |
|
400 return ArrayKlass::compute_is_subtype_of(k); |
|
401 |
|
402 ObjArrayKlass* oak = ObjArrayKlass::cast(k); |
|
403 return element_klass()->is_subtype_of(oak->element_klass()); |
|
404 } |
|
405 |
|
406 void ObjArrayKlass::initialize(TRAPS) { |
398 void ObjArrayKlass::initialize(TRAPS) { |
407 bottom_klass()->initialize(THREAD); // dispatches to either InstanceKlass or TypeArrayKlass |
399 bottom_klass()->initialize(THREAD); // dispatches to either InstanceKlass or TypeArrayKlass |
408 } |
400 } |
409 |
401 |
410 void ObjArrayKlass::metaspace_pointers_do(MetaspaceClosure* it) { |
402 void ObjArrayKlass::metaspace_pointers_do(MetaspaceClosure* it) { |