Skip to content

Commit

Permalink
7902804: -prof async help messages should mention DYLD_LIBRARY_PATH f…
Browse files Browse the repository at this point in the history
…or Mac OS users
  • Loading branch information
shipilev committed Dec 7, 2020
1 parent 9f5b990 commit 98b3a9f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public AsyncProfiler(String initLine) throws ProfilerException {

OptionSpec<String> optLibPath = parser.accepts("libPath",
"Location of asyncProfiler library. If not specified, System.loadLibrary will be used " +
"and the library must be made available to the forked JVM in an entry of -Djava.library.path " +
"or LD_LIBRARY_PATH.")
"and the library must be made available to the forked JVM in an entry of -Djava.library.path, " +
"LD_LIBRARY_PATH (Linux), or DYLD_LIBRARY_PATH (Mac OS).")
.withRequiredArg().ofType(String.class).describedAs("path");

OptionSpec<String> optEvent = parser.accepts("event",
Expand Down Expand Up @@ -233,7 +233,8 @@ public AsyncProfiler(String initLine) throws ProfilerException {
}
} catch (UnsatisfiedLinkError e) {
throw new ProfilerException("Unable to load async-profiler. Ensure asyncProfiler library " +
"is on LD_LIBRARY_PATH, -Djava.library.path or libPath=", e);
"is on LD_LIBRARY_PATH (Linux), DYLD_LIBRARY_PATH (Mac OS), or -Djava.library.path. " +
"Alternatively, point to explicit library location with -prof async:libPath=<path>.", e);
}
this.direction = optDirection.value(set);
this.output = optOutput.values(set);
Expand Down

0 comments on commit 98b3a9f

Please sign in to comment.