On Wed, 10 Mar 2021 04:28:04 GMT, Ioi Lam <ik...@openjdk.org> wrote: >> Yumin Qi has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix white space in CDS.java > > src/java.base/share/classes/jdk/internal/misc/CDS.java line 256: > >> 254: >> 255: // Do not take parent env which will cause dumping fail. >> 256: Process proc = Runtime.getRuntime().exec(cmds.toArray(new >> String[0]), > > Could you explain why the parent's env variables will cause dumping to fail?
I found jtreg env will be brought in to the children env which is not needed in this case. Add comment. ------------- PR: https://git.openjdk.java.net/jdk/pull/2737