commit | 1d75e9c921e91b0800998995c734cc2211d4fdb8 | [log] [tgz] |
---|---|---|
author | Adrian Roos <roosa@google.com> | Fri Jan 10 19:24:03 2020 +0100 |
committer | Adrian Roos <roosa@google.com> | Thu Jan 16 19:13:13 2020 +0000 |
tree | c8abed37920a441ce865237c129077917e1af6f7 | |
parent | e8fd15b2cc271502e189c767bbb50febced5e8ec [diff] |
ProtoLogTool: Fix thread pool leak on code generation exception Fixes an issue where the thread pool leaks when code generation throws an exception (for example because of an invalid log string). When the thread pool leaks, System.exit() no longer works, because the JVM waits for all threads to exit - which never happens for the leaked thread pool. Test: `ProtoLog.w(LOG_GROUP, new String())` -> make droid should not hang Change-Id: Ibdae0f1e68441c6fe004398d146f496503ccc4cd