Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use jvm options from RSC subsystem for RSC invocation (#8434)
### Problem Actual RSC invocation under `compile.rsc` is using `--compile-rsc-jvm-options` meant for zinc. Therefore, if security manager was involved for zinc, it could cause RSC invocation to fail like below: ``` 23:53:22 [DEBUG] pants.engine.scheduler:pid=53433: computed 1 nodes in 1.325367 seconds. there are 3121 total nodes. Error occurred during initialization of VM java.lang.InternalError: Could not create SecurityManager: __shaded_by_pants__.com.company.common_internal.compile_security.CompileSecurityManager at sun.misc.Launcher.<init>(Launcher.java:103) at sun.misc.Launcher.<clinit>(Launcher.java:54) at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1451) at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1436) ``` ### Solution Introduce a separate set of jvm options for RSC Subsystem, which does not use `--compile-rsc-jvm-options`, but `--rsc-jvm-options`.
- Loading branch information