Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
8178349: Cache builtin class loader constraints to avoid re-initializ…
…ing itable/vtable for shared classes Record loader constraints for built-in class which is loaded by app loader or platform loader in shared archive in dump time. When the class loaded from shared archive at runtime, directly check loader constraints using the saved info so avoid lengthy relayout i/v-table at class link stage. Reviewed-by: iklam, ccheung
- Loading branch information
Showing
with
851 additions
and 88 deletions.
- +2 −1 src/hotspot/share/classfile/loaderConstraints.hpp
- +10 −4 src/hotspot/share/classfile/systemDictionary.cpp
- +9 −4 src/hotspot/share/classfile/systemDictionary.hpp
- +306 −62 src/hotspot/share/classfile/systemDictionaryShared.cpp
- +3 −0 src/hotspot/share/classfile/systemDictionaryShared.hpp
- +4 −1 src/hotspot/share/interpreter/linkResolver.cpp
- +12 −10 src/hotspot/share/oops/instanceKlass.cpp
- +5 −4 src/hotspot/share/oops/klassVtable.cpp
- +3 −1 src/hotspot/share/runtime/handles.hpp
- +1 −1 src/hotspot/share/runtime/mutexLocker.cpp
- +1 −0 test/hotspot/jtreg/TEST.groups
- +98 −0 test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints/DynamicLoaderConstraintsTest.java
- +150 −0 test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints/LoaderConstraintsApp.java
- +77 −0 test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints/LoaderConstraintsTest.java
- +55 −0 test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints/MyClassLoader.java
- +29 −0 test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints/MyHttpHandler.java
- +43 −0 test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints/MyHttpHandlerB.java
- +43 −0 test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints/MyHttpHandlerC.java
Oops, something went wrong.