changeset 19965:9bd252b8e3ad

Check for null installedCode when reporting events
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Thu, 19 Mar 2015 17:25:16 -0700
parents 841ab4da4dd8
children 8964b0b777b7
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java	Thu Mar 19 17:23:05 2015 -0700
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java	Thu Mar 19 17:25:16 2015 -0700
@@ -290,7 +290,7 @@
             final int processedBytes = (int) (InlinedBytecodes.getCurrentValue() - previousInlinedBytecodes);
 
             // Log a compilation event.
-            if (compilationEvent.shouldWrite()) {
+            if (compilationEvent.shouldWrite() && installedCode != null) {
                 compilationEvent.setMethod(method.format("%H.%n(%p)"));
                 compilationEvent.setCompileId(getId());
                 compilationEvent.setCompileLevel(config.compilationLevelFullOptimization);