⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stubs.c

📁 已经移植好的java虚拟机
💻 C
字号:
/* * @(#)stubs.c	1.6 02/09/27 * * Copyright 1995-1998 by Sun Microsystems, Inc., * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. *  * This software is the confidential and proprietary information * of Sun Microsystems, Inc. ("Confidential Information").  You * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with Sun. * Use is subject to license terms. *//*========================================================================= * SYSTEM:    Verifier * SUBSYSTEM: Stubs. * FILE:      stubs.c * OVERVIEW:  Miscellaneous functions used during class loading, etc. * * AUTHOR:    Sheng Liang, Sun Microsystems, Inc. *            Edited by Tasneem Sayeed, Sun Microsystems *=======================================================================*//*========================================================================= * Include files *=======================================================================*/#include <oobj.h>#include <sys_api.h>voidSignalError(struct execenv * ee, char *ename, char *DetailMessage){	printCurrentClassName();    jio_fprintf(stderr, "%s", ename);	if (DetailMessage) {		jio_fprintf(stderr, ": %s\n", DetailMessage);	} else {		jio_fprintf(stderr, "\n");	}    exit(1);}bool_tVerifyClassAccess(ClassClass *current_class, ClassClass *new_class, 		  bool_t classloader_only) {    return TRUE;}/* This is called by FindClassFromClass when a class name is being requested * by another class that was loaded via a classloader.  For javah, we don't * really care. */ClassClass *ClassLoaderFindClass(struct execenv *ee, 		     struct Hjava_lang_ClassLoader *loader, 		     char *name, bool_t resolve){     return NULL;}/* Get the execution environment */ExecEnv *EE() {    static struct execenv lee;    return &lee;}bool_t RunStaticInitializers(ClassClass *cb){    return TRUE;}void InitializeInvoker(ClassClass *cb){}int verifyclasses = VERIFY_ALL;long nbinclasses, sizebinclasses;ClassClass **binclasses;bool_t verbose;struct StrIDhash *nameTypeHash;struct StrIDhash *stringHash;void *allocClassClass(){    ClassClass *cb = sysCalloc(1, sizeof(ClassClass));    Classjava_lang_Class *ucb = sysCalloc(1, sizeof(Classjava_lang_Class));        cb->obj = ucb;    ucb->HandleToSelf = cb;    return cb;}void DumpThreads() {}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -