Skip to content

Commit 77080dd

Browse files
Automatic merge of master into galahad
2 parents 672d406 + a6e489a commit 77080dd

File tree

12 files changed

+815
-78
lines changed

12 files changed

+815
-78
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/replacements/MonitorSnippets.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,8 @@
197197
* appropriately to comply with the layouts above.
198198
*/
199199
// @formatter:off
200-
@SyncPort(from = "https://github.com/openjdk/jdk/blob/c2d76f9844aadf77a0b213a9169a7c5c8c8f1ffb/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L457-L617",
201-
sha1 = "2d66e0ccf8dbf69f575be2633d5a17f77a20131d")
202-
@SyncPort(from = "https://github.com/openjdk/jdk/blob/c2d76f9844aadf77a0b213a9169a7c5c8c8f1ffb/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L619-L780",
203-
sha1 = "e88d7b8c4bb85358c6a810ee1d7d92fde5db42e6")
200+
@SyncPort(from = "https://github.com/openjdk/jdk/blob/c2d76f9844aadf77a0b213a9169a7c5c8c8f1ffb/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L149-L578",
201+
sha1 = "ee04c86e8b12a9f8331c5e79f95a17b27615c845")
204202
// @formatter:on
205203
public class MonitorSnippets implements Snippets {
206204

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/amd64/AMD64BitSwapOp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import jdk.vm.ci.meta.Value;
4141

4242
// @formatter:off
43-
@SyncPort(from = "https://github.com/openjdk/jdk/blob/83feb7a2388e33835b2071cfe0e51ba8b43e241f/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L6477-L6559",
43+
@SyncPort(from = "https://github.com/openjdk/jdk/blob/f3b34d32d6ea409f8c8f0382e8f01e746366f842/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L6275-L6357",
4444
sha1 = "34c6e1ee7916fc7190cbcbc237eaf2b510f7dd0e")
4545
// @formatter:on
4646
public final class AMD64BitSwapOp extends AMD64LIRInstruction {

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/amd64/AMD64CountPositivesOp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
import jdk.vm.ci.meta.Value;
5656

5757
// @formatter:off
58-
@SyncPort(from = "https://github.com/openjdk/jdk/blob/83feb7a2388e33835b2071cfe0e51ba8b43e241f/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L4142-L4385",
58+
@SyncPort(from = "https://github.com/openjdk/jdk/blob/f3b34d32d6ea409f8c8f0382e8f01e746366f842/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L3940-L4183",
5959
sha1 = "1aa453c52215c1fc8d467460a93fa590f9edab15")
6060
// @formatter:on
6161
@Opcode("AMD64_COUNT_POSITIVES")

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/amd64/AMD64VectorizedHashCodeOp.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@
7575
import jdk.vm.ci.meta.Value;
7676

7777
// @formatter:off
78-
@SyncPort(from = "https://github.com/openjdk/jdk/blob/83feb7a2388e33835b2071cfe0e51ba8b43e241f/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L1887-L1996",
78+
@SyncPort(from = "https://github.com/openjdk/jdk/blob/f3b34d32d6ea409f8c8f0382e8f01e746366f842/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L1685-L1794",
7979
sha1 = "1cc5a10b19e7746105493d8f430f628cc7f89c51")
80-
@SyncPort(from = "https://github.com/openjdk/jdk/blob/83feb7a2388e33835b2071cfe0e51ba8b43e241f/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L2185-L2231",
80+
@SyncPort(from = "https://github.com/openjdk/jdk/blob/f3b34d32d6ea409f8c8f0382e8f01e746366f842/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L1983-L2029",
8181
sha1 = "9cbba8bd6c4037427fa46f067abb722b15aca90c")
82-
@SyncPort(from = "https://github.com/openjdk/jdk/blob/83feb7a2388e33835b2071cfe0e51ba8b43e241f/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L3562-L3749",
82+
@SyncPort(from = "https://github.com/openjdk/jdk/blob/f3b34d32d6ea409f8c8f0382e8f01e746366f842/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L3360-L3547",
8383
sha1 = "a3fe941a49e0e3f8443b2e16e550d6c94b012b12")
8484
// @formatter:on
8585
@Opcode("VECTORIZED_HASHCODE")

docs/reference-manual/native-image/AutomaticMetadataCollection.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ redirect_from: /reference-manual/native-image/Agent/
99
# Collect Metadata with the Tracing Agent
1010

1111
The Native Image tool relies on the static analysis of an application's reachable code at runtime.
12-
However, the analysis cannot always completely predict all usages of the Java Native Interface (JNI), Java Reflection, Dynamic Proxy objects, or class path resources.
12+
However, the analysis cannot always completely predict all usages of the Java Native Interface (JNI), Foreign Function and Memory (FFM) API, Java Reflection, Dynamic Proxy objects, or class path resources.
1313
Undetected usages of these dynamic features must be provided to the `native-image` tool in the form of [metadata](ReachabilityMetadata.md) (precomputed in code or as JSON configuration files).
1414

1515
Here you will find information how to automatically collect metadata for an application and write JSON configuration files.
@@ -194,4 +194,5 @@ An arbitrary number of `--input-dir` arguments with sets of configuration files
194194

195195
* [Build a Native Executable with Reflection](guides/build-with-reflection.md)
196196
* [Reachability Metadata](ReachabilityMetadata.md)
197-
* [Experimental Agent Options](ExperimentalAgentOptions.md)
197+
* [Experimental Agent Options](ExperimentalAgentOptions.md)
198+
* [Foreign Function and Memory API in Native Image](FFM-API.md)

docs/reference-manual/native-image/BuildOutput.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ GraalVM Native Image: Generating 'helloworld' (executable)...
3636
3,158 types, 3,625 fields, and 14,804 methods found reachable
3737
1,012 types, 36 fields, and 377 methods registered for reflection
3838
57 types, 57 fields, and 52 methods registered for JNI access
39+
0 downcalls and 0 upcalls registered for foreign access
3940
4 native libraries: dl, pthread, rt, z
4041
[3/8] Building universe... (0.8s @ 0.99GB)
4142
[4/8] Parsing methods... [*] (0.6s @ 0.75GB)
@@ -171,8 +172,8 @@ Large numbers can cause significant reflection overheads, slow down the build pr
171172
#### <a name="glossary-jni-access-registrations"></a>JNI Access Registrations
172173
The number of types, fields, and methods that are registered for [JNI](JNI.md) access.
173174

174-
#### <a name="glossary-foreign-downcall-and-upcall-registrations"></a>Foreign functions stubs
175-
The number of downcalls and upcalls registered for [foreign](ForeignInterface.md) function access.
175+
#### <a name="glossary-foreign-downcall-and-upcall-registrations"></a>Foreign Access Registrations
176+
The number of downcalls and upcalls registered for [foreign function access](FFM-API.md).
176177

177178
#### <a name="glossary-runtime-methods"></a>Runtime Compiled Methods
178179
The number of methods marked for runtime compilation.

docs/reference-manual/native-image/DynamicFeatures.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The reference information here explains how Native Image handles some dynamic fe
1818
- [Accessing Resources](ReachabilityMetadata.md#resources)
1919
- [Certificate Management](CertificateManagement.md)
2020
- [Java Native Interface (JNI)](ReachabilityMetadata.md#java-native-interface)
21+
* [Foreign Function and Memory API in Native Image](FFM-API.md)
2122
- [JCA Security Services](JCASecurityServices.md)
2223
- [Reflection](ReachabilityMetadata.md#reflection)
2324
- [URL Protocols](URLProtocols.md)

0 commit comments

Comments
 (0)