src/hotspot/share/oops/klassVtable.cpp
changeset 48794 ea0d0781c63c
parent 48463 474cec233fb2
child 48819 ee513596f3ee
equal deleted inserted replaced
48793:b9a29dfaaeb2 48794:ea0d0781c63c
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2018, 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.
  1038 // Initialize a itableMethodEntry
  1038 // Initialize a itableMethodEntry
  1039 void itableMethodEntry::initialize(Method* m) {
  1039 void itableMethodEntry::initialize(Method* m) {
  1040   if (m == NULL) return;
  1040   if (m == NULL) return;
  1041 
  1041 
  1042 #ifdef ASSERT
  1042 #ifdef ASSERT
  1043   if (MetaspaceShared::is_in_shared_space((void*)&_method) &&
  1043   if (MetaspaceShared::is_in_shared_metaspace((void*)&_method) &&
  1044      !MetaspaceShared::remapped_readwrite()) {
  1044      !MetaspaceShared::remapped_readwrite()) {
  1045     // At runtime initialize_itable is rerun as part of link_class_impl()
  1045     // At runtime initialize_itable is rerun as part of link_class_impl()
  1046     // for a shared class loaded by the non-boot loader.
  1046     // for a shared class loaded by the non-boot loader.
  1047     // The dumptime itable method entry should be the same as the runtime entry.
  1047     // The dumptime itable method entry should be the same as the runtime entry.
  1048     assert(_method == m, "sanity");
  1048     assert(_method == m, "sanity");