Add java agent and socket library to the minimal JDK.
This is necessary to make --host_jvm_debug work again.
Note, that this is only the first half of the fix for the second is to
update the hashes after we built the new minimal JDK on buildkite.
RELNOTES: None
Closes
@@ -35,6 +35,8 @@ if [[ "$UNAME" =~ msys_nt* ]]; then
--output reduced
cp DISCLAIMER readme.txt legal/java.base/ASSEMBLY_EXCEPTION \
reduced/
+ # These are necessary for --host_jvm_debug to work.
+ cp bin/dt_socket.dll bin/jdwp.dll reduced/bin
zip -r -9 ../reduced.zip reduced/
cd ..
mv reduced.zip "$out"
@@ -46,6 +48,12 @@ else
--output reduced
cp DISCLAIMER readme.txt legal/java.base/ASSEMBLY_EXCEPTION \
reduced/
+ # These are necessary for --host_jvm_debug to work.
+ if [[ "$UNAME" =~ darwin ]]; then
+ cp lib/libdt_socket.dylib lib/libjdwp.dylib reduced/lib
+ else
+ cp lib/libdt_socket.so lib/libjdwp.so reduced/lib
+ fi
GZIP=-9 tar -zcf ../reduced.tgz reduced
cd ..
mv reduced.tgz "$out"
