# HG changeset patch # User Tom Rodriguez # Date 1426811116 25200 # Node ID 9bd252b8e3adc6c9a6a5471806912eb0ea03cd7d # Parent 841ab4da4dd85ae86edc1e58fed3882e0f3be219 Check for null installedCode when reporting events diff -r 841ab4da4dd8 -r 9bd252b8e3ad graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java --- 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);