src/share/vm/oops/instanceKlass.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/share/vm/oops/instanceKlass.hpp	Thu Feb  6 15:26:41 2014
--- new/src/share/vm/oops/instanceKlass.hpp	Thu Feb  6 15:26:41 2014

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

src/share/vm/oops/instanceKlass.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File