changeset 9988:0a59959177c9

allow calls to $jacocoInit() from <clinit> in a class declaring an option
author Doug Simon <doug.simon@oracle.com>
date Tue, 11 Jun 2013 01:56:30 +0200
parents b270f0856a39
children 81f8a7461d63
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/VerifyHotSpotOptionsPhase.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/VerifyHotSpotOptionsPhase.java	Tue Jun 11 01:32:41 2013 +0200
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/VerifyHotSpotOptionsPhase.java	Tue Jun 11 01:56:30 2013 +0200
@@ -101,6 +101,8 @@
             return method.getName().equals("valueOf");
         } else if (method.getDeclaringClass() == runtime.lookupJavaType(Class.class)) {
             return method.getName().equals("desiredAssertionStatus");
+        } else if (method.getDeclaringClass().equals(declaringClass)) {
+            return (method.getName().equals("$jacocoInit"));
         }
         return false;
     }