Stay organized with collections
Save and categorize content based on your preferences.
cycle_finder
The cycle_finder tool statically analyzes specified Java
source files for strong memory references between objects.
cycle_finder [ options ] file1.java ...
The following options are supported:
- -sourcepath <path>
- Specify where to find input source files
- -classpath <path>
- Specify where to find user class files
- --suppress-list <file>
- Specify a file that lists approved fields and types to suppress.
- --restrict-to <file>
- When specified, only cycles containing the types and namespaces listed are printed.
- -Xbootclasspath:<path>
- Boot path used by translation (not the tool itself).
- -version
- Version information
- -h, --help
- Print this message.
See Also
Cycle Finder Tool
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003ecycle_finder\u003c/code\u003e is a static analysis tool designed to identify strong memory reference cycles in Java source code.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify source files, classpaths, and customize analysis using options like \u003ccode\u003e--suppress-list\u003c/code\u003e and \u003ccode\u003e--restrict-to\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe tool aids in detecting potential memory leaks by highlighting circular dependencies between objects in Java programs.\u003c/p\u003e\n"],["\u003cp\u003eAdditional information and guides can be found in the linked documentation for the \u003ccode\u003ecycle_finder\u003c/code\u003e tool.\u003c/p\u003e\n"]]],["The `cycle_finder` tool analyzes Java source files for strong memory references between objects. Key actions include specifying source files and using options like `-sourcepath` and `-classpath` to locate files. It can suppress output with `--suppress-list`, restrict output to specific types and namespaces using `--restrict-to`, and use `-Xbootclasspath` for translation. Additional options include viewing version information and getting help with `-version` and `-h` or `--help`, respectively.\n"],null,["cycle_finder\n============\n\nThe **cycle_finder** tool statically analyzes specified Java\nsource files for strong memory references between objects. \n\n cycle_finder [ options ] file1.java ...\n\nThe following options are supported:\n\n-sourcepath \\\u003cpath\\\u003e\n: Specify where to find input source files\n\n-classpath \\\u003cpath\\\u003e\n: Specify where to find user class files\n\n--suppress-list \\\u003cfile\\\u003e\n: Specify a file that lists approved fields and types to suppress.\n\n--restrict-to \\\u003cfile\\\u003e\n: When specified, only cycles containing the types and namespaces listed are printed.\n\n-Xbootclasspath:\\\u003cpath\\\u003e\n: Boot path used by translation (not the tool itself).\n\n-version\n: Version information\n\n-h, --help\n: Print this message.\n\nSee Also\n--------\n\n[Cycle Finder Tool](/j2objc/guides/cycle-finder-tool)"]]