提交 c4388e03 authored 作者: Thomas Mueller's avatar Thomas Mueller

Issue 594: Profiler.copyInThread does not work properly.

上级 aef22ba5
...@@ -17,7 +17,7 @@ Change Log ...@@ -17,7 +17,7 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>- <ul><li>Issue 594: Profiler.copyInThread does not work properly.
</li></ul> </li></ul>
<h2>Version 1.4.184 Beta (2014-12-19)</h2> <h2>Version 1.4.184 Beta (2014-12-19)</h2>
......
...@@ -282,7 +282,7 @@ public class Profiler implements Runnable { ...@@ -282,7 +282,7 @@ public class Profiler implements Runnable {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
} }
}.run(); }.start();
} }
/** /**
......
...@@ -361,7 +361,7 @@ public class BuildBase { ...@@ -361,7 +361,7 @@ public class BuildBase {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
} }
} .start(); }.start();
} }
/** /**
......
...@@ -103,7 +103,7 @@ public class JavaProcessKiller { ...@@ -103,7 +103,7 @@ public class JavaProcessKiller {
} }
private static void copyInThread(final InputStream in, final OutputStream out) { private static void copyInThread(final InputStream in, final OutputStream out) {
new Thread("Profiler stream copy") { new Thread("Stream copy") {
@Override @Override
public void run() { public void run() {
byte[] buffer = new byte[4096]; byte[] buffer = new byte[4096];
...@@ -119,7 +119,7 @@ public class JavaProcessKiller { ...@@ -119,7 +119,7 @@ public class JavaProcessKiller {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
} }
}.run(); }.start();
} }
} }
...@@ -240,7 +240,7 @@ public class Migrate { ...@@ -240,7 +240,7 @@ public class Migrate {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
} }
} .start(); }.start();
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论