-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Runtime] Determine tracer or replayer for QuickStart
Summary: With -Xquickstart, there are three roles for the java processes: 1. tracer first create the LOCK file, and mark the process as tracer. create the metadata file after the process has started, 2. replayer If the metadata file is found, mark the process as replayer 3. normal If there is no metadata file, and failed to create the LOCK file, the process will run without quickstart feature. -Xquickstart:destroy delete the directory of the cache file, and exit. More detail in https://yuque.antfin-inc.com/aone355606/uzt0dx/tylp9b Test Plan: test/jdk/com/alibaba/quickstart/TestDeterminingTracerOrReplayer.java test/jdk/com/alibaba/quickstart/TestParallelProcessRun.java test/jdk/com/alibaba/quickstart/TestRemoveDirectory.java
- Loading branch information
1 parent
67dda78
commit 6641997
Showing
8 changed files
with
414 additions
and
30 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
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.