Leakage of build state from one flavor of build to another?
Srinivas Ramakrishna
ysr1729 at gmail.com
Tue Mar 19 09:05:35 UTC 2019
I am still working with OpenJDK 11, so I am not sure if these comments
apply to more recent vintages of, or
the tip of OpenJDK.
I noticed recently that if one had built a fastdebug (or release) image of
the JDK and then built a slowdebug
image,then it turns out that the slowdebug image fails with a bootstrap
error such as the following:
$repo/build/macosx-x86_64-normal-server-slowdebug/images/jdk/bin/java
-version
Error occurred during initialization of boot layer
java.lang.LayerInstantiationException: Package sun.util in both module
java.base and module jdk.localedata
The precise details of the exception might vary a bit.
A clean rebuild of slowdebug -- after cleaning out all vestiges of other
flavors of builds -- seems to work around
the problem. If one builds slowdebug, before the other builds then there
isn't an issue. I have noticed
this only on the mac, my primary dev platform these days, but will see if
this also happens on Linux as well, and update.
Not having looked in any detail at the build process, I was wondering if
anyone had encountered this kind of
error during development and if this is a known issue.
thanks,
-- ramki
// TwitterVMTeam // openjdk: ysr
More information about the hotspot-dev
mailing list