< prev index next >

src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/NMethod.java

Print this page
rev 8632 : 6900757: minor bug fixes to LogCompilation tool
* improve internal error reporting (point to XML element causing trouble)
* fix comparator for sorting by name and start
* make tool more robust wrt. incorrect options and files not found
* make inlining decision output more clear
* adopt uncommon traps history printing
* properly mention compiler in generated logs
* add options for printing time stamps and omitting compilation IDs
* add option for comparing compilation logs
* overall code cleanup and API documentation

*** 1,7 **** /* ! * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 24,45 **** package com.sun.hotspot.tools.compiler; import java.io.PrintStream; public class NMethod extends BasicLogEvent { private long address; private long size; NMethod(double s, String i, long a, long sz) { super(s, i); address = a; size = sz; } ! public void print(PrintStream out) { // XXX Currently we do nothing // throw new InternalError(); } public long getAddress() { --- 24,56 ---- package com.sun.hotspot.tools.compiler; import java.io.PrintStream; + /** + * A compilation log event that is signalled whenever a new nmethod (a native + * method, a compilation result) is created. + */ public class NMethod extends BasicLogEvent { + /** + * The nmethod's starting address in memory. + */ private long address; + + /** + * The nmethod's size in bytes. + */ private long size; NMethod(double s, String i, long a, long sz) { super(s, i); address = a; size = sz; } ! public void print(PrintStream out, boolean printID) { // XXX Currently we do nothing // throw new InternalError(); } public long getAddress() {
< prev index next >