OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [gcj/] [runtime/] [natSystemClassLoader.cc] - Rev 771

Go to most recent revision | Compare with Previous | Blame | View Log

// natSystemClassLoader.cc - native code for system class loader
 
/* Copyright (C) Free Software Foundation
 
   This file is part of libgcj.
 
This software is copyrighted work licensed under the terms of the
Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
details.  */
 
#include <config.h>
#include <platform.h>
 
#include <gcj/cni.h>
#include <jvm.h>
#include <execution.h>
 
#include <gnu/gcj/runtime/SystemClassLoader.h>
#include <java/lang/ClassNotFoundException.h>
#include <java/util/HashMap.h>
 
jclass
gnu::gcj::runtime::SystemClassLoader::findClass (jstring name)
{
  jclass result = (jclass) nativeClasses->get(name);
  if (! result)
    return URLClassLoader::findClass(name);
  // Never return a class whose supers are not installed.
  _Jv_Linker::wait_for_state (result, JV_STATE_LOADING);
  return result;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.