Mercurial > hg > graal-compiler
changeset 22818:268c0ea7c677
Truffle: make shutdown hook lazy
author | Andreas Woess <andreas.woess@oracle.com> |
---|---|
date | Wed, 14 Oct 2015 18:28:25 +0200 |
parents | a087ec9017a4 |
children | e472cc45ba76 |
files | graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/GraalTruffleRuntime.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/GraalTruffleRuntime.java Wed Oct 14 18:26:21 2015 +0200 +++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/GraalTruffleRuntime.java Wed Oct 14 18:28:25 2015 +0200 @@ -82,7 +82,6 @@ protected CallMethods callMethods; public GraalTruffleRuntime() { - Runtime.getRuntime().addShutdownHook(new Thread(this::shutdown)); } public abstract TruffleCompiler getTruffleCompiler(); @@ -116,6 +115,7 @@ TraceSplittingListener.install(this); PrintCallTargetProfiling.install(this); CompilationStatisticsListener.install(this); + Runtime.getRuntime().addShutdownHook(new Thread(this::shutdown)); compilationNotify.notifyStartup(this); }