-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid blocking in ASMBasedTaskDescriptor (#336)
Currently the ASMBasedTaskDescriptor uses ByteBuddy to hook into the class loader to analyze bytecode so that ParSeq can generate descriptions of tasks that were created via lambda functions to aid in debugging and tracing. In production, blocking on the lambda can cause a global lockout of threads. This can happen because of the common fork join pool being starved or because the classes being analyzed take a while. If a class has already been analyzed, we do not need to await the latch because we have a thread safe collection to access. Classes can be analyzed multiple times in a JVM lifecycle because of class unloading, but we don't care about subsequent analyses, (the bytecode should not change with load -> unload -> load).
- Loading branch information
1 parent
51ce337
commit ed54dc8
Showing
3 changed files
with
98 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
version=5.1.13 | ||
version=5.1.14 | ||
group=com.linkedin.parseq | ||
org.gradle.parallel=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters