RFR: Runner: if -Djmh.ignoreLock=true then skip jmh.lock creation
Sergey Ponomarev
github.com+415502+stokito at openjdk.java.net
Wed Oct 21 08:16:21 UTC 2020
When -Djmh.ignoreLock=true JMH anyway will try to create the jmh.lock file and if it fails it will write a warning for
an user. This may be not a best way for several reasons:
1. If user specified ignoreLock then he already knows what she or he doing.
2. If the Benchmark is started from IDE i.e idea-jmh-plugin and the ignoreLock was added automatically then users may
be confused by this warning 3. It makes execution slightly longer when we anyway trying to create the jmh.lock file
4. This simplifies logic
-------------
Commit messages:
- Runner: if -Djmh.ignoreLock=true then skip jmh.lock creation
Changes: https://git.openjdk.java.net/jmh/pull/6/files
Webrev: https://webrevs.openjdk.java.net/?repo=jmh&pr=6&range=00
Stats: 14 lines in 1 file changed: 3 ins; 9 del; 2 mod
Patch: https://git.openjdk.java.net/jmh/pull/6.diff
Fetch: git fetch https://git.openjdk.java.net/jmh pull/6/head:pull/6
PR: https://git.openjdk.java.net/jmh/pull/6
More information about the jmh-dev
mailing list