-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Parallelize the compiler via two-pass compilation #4767
Closed
Closed
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
ca11ef4
Always emit .tasty files (not .hasTasty)
nicolasstucki 20c6b81
Make tests support .hasTasty and .tasty files
nicolasstucki 68f932c
Change -Yemit-tasty to -Yemit-tasty-in-class and invert semantics
nicolasstucki 4b27d82
Fix loading tasty file from jar in concurrent setting
nicolasstucki 5f939ef
Rename isHasTastyFile to isTastyFile
nicolasstucki be93871
Output .tasty files in Pickler phase
smarter f2e704a
Support classpath with .tasty files and empty .class files
smarter 78d3be7
AbstractFile#fileOrSubdirectoryNamed: Fix race condition
smarter 190f404
TreeUnpickler: Avoid forcing annotations
smarter 04be8e0
When forcing a value class Foo, do not force BoxedFoo
smarter 14986f7
Fix dummy constructors emitted by the java parser
smarter a2f4213
HACK: Pickle the JavaDefined flag to make Java tasty outlines work
smarter 04ae049
Add -Yemit-tasty-outline to generate .tasty outline files
smarter e2f93ec
Support loading from virtual .tasty and .class files
smarter 09ad1cf
HACK: make -priorityclasspath take a possibly-virtual directory
smarter 71121d2
Add -parallelism and enable it by default
smarter 74a9c98
Work around type avoidance bugs in testcases
smarter 9eab717
Disable posTwice due to incompatibility with -parallelism
smarter a180cfa
Temporarily disable broken test
smarter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be all cores or all threads?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When parallelism is set to 0, we create one thread per "core" (for some definition of core) on your computer (to be more precise, we create
runtime.getRuntime().availableProcessors()
threads).