Mercurial > hg > graal-compiler
diff graal/com.oracle.jvmci.debug/src/com/oracle/jvmci/debug/Debug.java @ 21605:7a7cf422160b
replaced OptionsParsed with DebugInitializationPropertyProvider
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 29 May 2015 17:23:14 +0200 |
parents | d563baeca9df |
children |
line wrap: on
line diff
--- a/graal/com.oracle.jvmci.debug/src/com/oracle/jvmci/debug/Debug.java Fri May 29 17:01:57 2015 +0200 +++ b/graal/com.oracle.jvmci.debug/src/com/oracle/jvmci/debug/Debug.java Fri May 29 17:23:14 2015 +0200 @@ -32,6 +32,7 @@ import com.oracle.jvmci.debug.DelegatingDebugConfig.Level; import com.oracle.jvmci.debug.internal.*; +import com.oracle.jvmci.service.*; /** * Scope based debugging facility. This facility is {@link #isEnabled()} if assertions are enabled @@ -40,6 +41,12 @@ */ public class Debug { + static { + for (DebugInitializationPropertyProvider p : Services.load(DebugInitializationPropertyProvider.class)) { + p.apply(); + } + } + /** * Class to assist with initialization of {@link Debug}. */