This is the second step of JDK-8234693 Consolidate CDS static and dynamic archive dumping code
----
In dynamic CDS dumping, method entry trampolines are allocated in DynamicArchiveBuilder::make_trampolines()
http://hg.openjdk.java.net/jdk/jdk/file/f33197adda9a/src/hotspot/share/memory/dynamicArchive.cpp#l803
whereas in static CDS dumping, it's done in CDSAdapterHandlerEntry::init()
http://hg.openjdk.java.net/jdk/jdk/file/f33197adda9a/src/hotspot/share/runtime/sharedRuntime.cpp#l3172
We should convert the static dumping to the former, which avoids special handling during regular method linking.
----
In dynamic CDS dumping, method entry trampolines are allocated in DynamicArchiveBuilder::make_trampolines()
http://hg.openjdk.java.net/jdk/jdk/file/f33197adda9a/src/hotspot/share/memory/dynamicArchive.cpp#l803
whereas in static CDS dumping, it's done in CDSAdapterHandlerEntry::init()
http://hg.openjdk.java.net/jdk/jdk/file/f33197adda9a/src/hotspot/share/runtime/sharedRuntime.cpp#l3172
We should convert the static dumping to the former, which avoids special handling during regular method linking.
- duplicates
-
JDK-8253920 Share method trampolines in CDS dynamic archive
-
- Resolved
-
- relates to
-
JDK-8026297 Generate AdapterHandlerEntry during CDS dump
-
- Closed
-