-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Milestone
Description
StackTraceStringResolver contains the following lines:
@Override
public void resolve(
final Throwable throwable,
final JsonWriter jsonWriter) {
final TruncatingBufferedPrintWriter srcWriter = srcWriterRecycler.acquire();
try {
throwable.printStackTrace(srcWriter);
final TruncatingBufferedPrintWriter dstWriter = truncate(srcWriter);
jsonWriter.writeString(dstWriter);
} finally {
srcWriterRecycler.release(srcWriter);
}
}
private TruncatingBufferedPrintWriter truncate(
final TruncatingBufferedPrintWriter srcWriter) {
// ...
// Allocate temporary buffers and truncate the input.
final TruncatingBufferedPrintWriter dstWriter =
dstWriterRecycler.acquire();
try {
// ...
} finally {
dstWriterRecycler.release(dstWriter);
}
return dstWriter;
}
dstWriter created in truncate() recycled there, though used in resolve() later on.
Metadata
Metadata
Assignees
Labels
No labels