< prev index next >

src/hotspot/share/classfile/loaderConstraints.cpp

Print this page




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/dictionary.hpp"
  27 #include "classfile/classLoaderData.inline.hpp"


  28 #include "classfile/loaderConstraints.hpp"
  29 #include "logging/log.hpp"
  30 #include "memory/resourceArea.hpp"
  31 #include "oops/oop.inline.hpp"
  32 #include "runtime/handles.inline.hpp"
  33 #include "runtime/safepoint.hpp"
  34 #include "utilities/hashtable.inline.hpp"
  35 
  36 void LoaderConstraintEntry::set_loader(int i, oop p) {
  37   set_loader_data(i, ClassLoaderData::class_loader_data(p));
  38 }
  39 
  40 LoaderConstraintTable::LoaderConstraintTable(int table_size)
  41   : Hashtable<InstanceKlass*, mtClass>(table_size, sizeof(LoaderConstraintEntry)) {};
  42 
  43 
  44 LoaderConstraintEntry* LoaderConstraintTable::new_entry(
  45                                  unsigned int hash, Symbol* name,
  46                                  InstanceKlass* klass, int num_loaders,
  47                                  int max_loaders) {




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"

  26 #include "classfile/classLoaderData.inline.hpp"
  27 #include "classfile/classLoaderDataGraph.hpp"
  28 #include "classfile/dictionary.hpp"
  29 #include "classfile/loaderConstraints.hpp"
  30 #include "logging/log.hpp"
  31 #include "memory/resourceArea.hpp"
  32 #include "oops/oop.inline.hpp"
  33 #include "runtime/handles.inline.hpp"
  34 #include "runtime/safepoint.hpp"
  35 #include "utilities/hashtable.inline.hpp"
  36 
  37 void LoaderConstraintEntry::set_loader(int i, oop p) {
  38   set_loader_data(i, ClassLoaderData::class_loader_data(p));
  39 }
  40 
  41 LoaderConstraintTable::LoaderConstraintTable(int table_size)
  42   : Hashtable<InstanceKlass*, mtClass>(table_size, sizeof(LoaderConstraintEntry)) {};
  43 
  44 
  45 LoaderConstraintEntry* LoaderConstraintTable::new_entry(
  46                                  unsigned int hash, Symbol* name,
  47                                  InstanceKlass* klass, int num_loaders,
  48                                  int max_loaders) {


< prev index next >