mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8015086: add interned strings to the shared archive
Support saving interned strings in shared CDS archive. Reviewed-by: coleenp, iklam, pliden
This commit is contained in:
parent
c3f3f0f1bd
commit
edcd4cb94b
17 changed files with 724 additions and 116 deletions
|
@ -118,6 +118,10 @@ class java_lang_String : AllStatic {
|
|||
return hash_offset;
|
||||
}
|
||||
|
||||
static void set_value_raw(oop string, typeArrayOop buffer) {
|
||||
assert(initialized, "Must be initialized");
|
||||
string->obj_field_put_raw(value_offset, buffer);
|
||||
}
|
||||
static void set_value(oop string, typeArrayOop buffer) {
|
||||
assert(initialized && (value_offset > 0), "Must be initialized");
|
||||
string->obj_field_put(value_offset, (oop)buffer);
|
||||
|
@ -210,6 +214,7 @@ class java_lang_String : AllStatic {
|
|||
// Debugging
|
||||
static void print(oop java_string, outputStream* st);
|
||||
friend class JavaClasses;
|
||||
friend class StringTable;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue