mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8309390: [JVMCI] improve copying system properties into libgraal
Reviewed-by: never, kvn
This commit is contained in:
parent
63843b1153
commit
c0aa6bf4fe
19 changed files with 453 additions and 197 deletions
|
@ -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.
|
||||
|
|
|
@ -278,6 +278,7 @@ module java.base {
|
|||
java.security.jgss,
|
||||
java.smartcardio,
|
||||
jdk.charsets,
|
||||
jdk.internal.vm.ci,
|
||||
jdk.jlink,
|
||||
jdk.jpackage,
|
||||
jdk.net;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue