📄 log.c
字号:
/*0001*//*
/*0002./ * Copyright (c) 1998-2001 Sun Microsystems, Inc. All Rights Reserved.
/*0003./ *
/*0004./ * This software is the confidential and proprietary information of Sun
/*0005./ * Microsystems, Inc. ("Confidential Information"). You shall not
/*0006./ * disclose such Confidential Information and shall use it only in
/*0007./ * accordance with the terms of the license agreement you entered into
/*0008./ * with Sun.
/*0009./ *
/*0010./ * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
/*0011./ * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
/*0012./ * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
/*0013./ * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
/*0014./ * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
/*0015./ * THIS SOFTWARE OR ITS DERIVATIVES.
/*0016./ *
/*0017./ */
/*0018*/
/*0019*//*=========================================================================
/*0020./ * SYSTEM: KVM
/*0021./ * SUBSYSTEM: Profiling
/*0022./ * FILE: log.c
/*0023./ * OVERVIEW: Operations for gathering and printing out diagnostic
/*0024./ * virtual machine execution information at runtime.
/*0025./ * AUTHOR: Daniel Blaukopf, based on code by Antero Taivalsaari
/*0026./ * and Doug Simon
/*0027./ *=======================================================================*/
/*0028*/
/*0029*//*=========================================================================
/*0030./ * Include files
/*0031./ *=======================================================================*/
/*0032*/
/*0033*/#include <global.h>
/*0034*/
/*0035*//*=========================================================================
/*0036./ * Functions
/*0037./ *=======================================================================*/
/*0038*/
/*0039*//*=========================================================================
/*0040./ * NOTE:
/*0041./ * Documentation for each of the functions below is provided in log.h.
/*0042./ *=======================================================================*/
/*0043*/
/*0044*/static void
/*0045*/log_uncaughtException(THROWABLE_INSTANCE exception)
/*0046*/{
/*0047*/ fprintf(stderr, "Uncaught exception %s\n", \
/*0048*/ getClassName((CLASS)exception->ofClass));
/*0049*/}
/*0050*/
/*0051*/
/*0170*/
/*0171*/static const struct KVMLogInterface_ logImplementation = {
/*0172*/ fprintf
/*0173*/ ,log_uncaughtException
/*0187*/};
/*0188*/
/*0189*/const KVMLogInterface Log = (KVMLogInterface) &logImplementation;
/*0190*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -