Disable perfdata when running JavaToolchainCompileClasses or JavaToolchainCompileBootClasspath

Copybara Import from https://github.com/bazelbuild/rules_java/pull/149

BEGIN_PUBLIC
Disable perfdata when running JavaToolchainCompileClasses or JavaToolchainCompileBootClasspath (#149)

A [recent JDK update](https://github.com/openjdk/jdk/commit/84f23149e22561173feb0e34bca31a7345b43c89#diff-7313eb3d328797a7720fa1b2b73cd159934506593443e45534baad80cb1382b7R924-R927) started printing the following warning message from the JVM
```
[warning][perf,memops] Cannot use file /tmp/hsperfdata_username/2 because it is locked by another process (errno = 11)
```
on linux hosts.  Also referenced from https://github.com/bazelbuild/bazel/issues/3236

This PR disables the perfdata generation when running JavaToolchainCompileClasses or JavaToolchainCompileBootClasspath so this warning message won't be printed.

Closes #149
END_PUBLIC

COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_java/pull/149 from cheister:no-perfdata 601c3e5ad6959db85917e8297711daaacaa37b22
PiperOrigin-RevId: 614679249
Change-Id: I7e90c0ec0b93ac57763d3a5af546c4af9f7c9dc0
1 file changed
tree: 5703c48b212b4e6020e16b42d50147217ff92e37
  1. .bazel_checkout/
  2. .bazelci/
  3. .bcr/
  4. .github/
  5. distro/
  6. examples/
  7. java/
  8. toolchains/
  9. .bazelrc
  10. .bazelversion
  11. .gitignore
  12. AUTHORS
  13. BUILD
  14. CODEOWNERS
  15. CONTRIBUTING.md
  16. LICENSE
  17. MODULE.bazel
  18. README.md
  19. renovate.json
  20. WORKSPACE
  21. WORKSPACE.bzlmod
README.md

rules_java

  • Postsubmit Build status
  • Postsubmit + Current Bazel Incompatible Flags Build status

Java Rules for Bazel https://bazel.build.