1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, 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. |
552 Klass* host_klass() const { |
552 Klass* host_klass() const { |
553 Klass** hk = (Klass**)adr_host_klass(); |
553 Klass** hk = (Klass**)adr_host_klass(); |
554 if (hk == NULL) { |
554 if (hk == NULL) { |
555 return NULL; |
555 return NULL; |
556 } else { |
556 } else { |
|
557 assert(*hk != NULL, "host klass should always be set if the address is not null"); |
557 return *hk; |
558 return *hk; |
558 } |
559 } |
559 } |
560 } |
560 void set_host_klass(Klass* host) { |
561 void set_host_klass(Klass* host) { |
561 assert(is_anonymous(), "not anonymous"); |
562 assert(is_anonymous(), "not anonymous"); |