8309390: [JVMCI] improve copying system properties into libgraal

Reviewed-by: never, kvn
This commit is contained in:
Doug Simon 2023-06-13 14:45:33 +00:00
parent 63843b1153
commit c0aa6bf4fe
19 changed files with 453 additions and 197 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -101,19 +101,6 @@ public class VMSupport {
return serializePropertiesToByteArray(onlyStrings(getAgentProperties()));
}
/**
* Serializes {@link VM#getSavedProperties()} to a byte array.
*
* Used by JVMCI to copy properties into libjvmci.
*/
public static byte[] serializeSavedPropertiesToByteArray() throws IOException {
Properties props = new Properties();
for (var e : VM.getSavedProperties().entrySet()) {
props.put(e.getKey(), e.getValue());
}
return serializePropertiesToByteArray(props);
}
/*
* Return the temporary directory that the VM uses for the attach
* and perf data files.

View file

@ -278,6 +278,7 @@ module java.base {
java.security.jgss,
java.smartcardio,
jdk.charsets,
jdk.internal.vm.ci,
jdk.jlink,
jdk.jpackage,
jdk.net;