mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8204540: Automatic oop closure devirtualization
Reviewed-by: kbarrett, eosterlund
This commit is contained in:
parent
af4bf0927b
commit
11813888b8
101 changed files with 1024 additions and 1576 deletions
|
@ -190,9 +190,10 @@ void* Klass::operator new(size_t size, ClassLoaderData* loader_data, size_t word
|
|||
// which doesn't zero out the memory before calling the constructor.
|
||||
// Need to set the _java_mirror field explicitly to not hit an assert that the field
|
||||
// should be NULL before setting it.
|
||||
Klass::Klass() : _prototype_header(markOopDesc::prototype()),
|
||||
_shared_class_path_index(-1),
|
||||
_java_mirror(NULL) {
|
||||
Klass::Klass(KlassID id) : _id(id),
|
||||
_prototype_header(markOopDesc::prototype()),
|
||||
_shared_class_path_index(-1),
|
||||
_java_mirror(NULL) {
|
||||
CDS_ONLY(_shared_class_flags = 0;)
|
||||
CDS_JAVA_HEAP_ONLY(_archived_mirror = 0;)
|
||||
_primary_supers[0] = this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue