Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
repo-valhalla
Description
1. Building jdk image on branch "lworld+vector" with "--disable-precompiled-headers" fails.
Here is part of the log:
```
Creating hotspot/variant-server/libjvm/gtest/gtestLauncher from 1 file(s)
In file included from valhalla/src/hotspot/share/utilities/growableArray.hpp:29,
from valhalla/src/hotspot/share/classfile/classLoaderData.hpp:33,
from valhalla/src/hotspot/share/memory/metadataFactory.hpp:28,
from valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp:30,
from /valhalla/src/hotspot/share/oops/fieldInfo.cpp:26:
valhalla/src/hotspot/share/oops/array.hpp: In instantiation of 'class Array<MultiFieldInfo>':
valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp:74:25: required from here
/valhalla/src/hotspot/share/oops/array.hpp:47:7: error: 'Array<T>::_data' has incomplete type
47 | T _data[1]; // the array memory
| ^~~~~
In file included from valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp:28,
from valhalla/src/hotspot/share/oops/fieldInfo.cpp:26:
valhalla/src/hotspot/share/oops/fieldInfo.hpp:33:7: note: forward declaration of 'class MultiFieldInfo'
33 | class MultiFieldInfo;
| ^~~~~~~~~~~~~~
In file included from valhalla/src/hotspot/share/oops/fieldInfo.cpp:26:
valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp: In member function 'Symbol* FieldInfo::get_multifield_name(Array<MultiFieldInfo>*) const':
valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp:74:47: error: invalid use of incomplete type 'class MultiFieldInfo'
74 | return multifield_info->at(secondary_index()).name();
| ^
In file included from valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp:28,
fromvalhalla/src/hotspot/share/oops/fieldInfo.cpp:26:
valhalla/src/hotspot/share/oops/fieldInfo.hpp:33:7: note: forward declaration of 'class MultiFieldInfo'
33 | class MultiFieldInfo;
| ^~~~~~~~~~~~~~
In file included from valhalla/src/hotspot/share/oops/fieldInfo.cpp:26:
valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp: In member function 'u2 FieldInfo::multifield_base(Array<MultiFieldInfo>*) const':
valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp:79:65: error: invalid use of incomplete type 'class MultiFieldInfo'
79 | return is_multifield() ? multifield_info->at(secondary_index()).base_index() : index();
```
2. Build jdk fails with "--with-jvm-variants=client"
Here is the log:
```
valhalla/src/hotspot/share/prims/vectorSupport.cpp:312:19: error: 'reassign_fields_by_klass' is not a member of 'Deoptimization'
Deoptimization::reassign_fields_by_klass(payload_class, fr, reg_map, ov, 0, payload_instance(), true, 0, CHECK_NULL)
```
Here is part of the log:
```
Creating hotspot/variant-server/libjvm/gtest/gtestLauncher from 1 file(s)
In file included from valhalla/src/hotspot/share/utilities/growableArray.hpp:29,
from valhalla/src/hotspot/share/classfile/classLoaderData.hpp:33,
from valhalla/src/hotspot/share/memory/metadataFactory.hpp:28,
from valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp:30,
from /valhalla/src/hotspot/share/oops/fieldInfo.cpp:26:
valhalla/src/hotspot/share/oops/array.hpp: In instantiation of 'class Array<MultiFieldInfo>':
valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp:74:25: required from here
/valhalla/src/hotspot/share/oops/array.hpp:47:7: error: 'Array<T>::_data' has incomplete type
47 | T _data[1]; // the array memory
| ^~~~~
In file included from valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp:28,
from valhalla/src/hotspot/share/oops/fieldInfo.cpp:26:
valhalla/src/hotspot/share/oops/fieldInfo.hpp:33:7: note: forward declaration of 'class MultiFieldInfo'
33 | class MultiFieldInfo;
| ^~~~~~~~~~~~~~
In file included from valhalla/src/hotspot/share/oops/fieldInfo.cpp:26:
valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp: In member function 'Symbol* FieldInfo::get_multifield_name(Array<MultiFieldInfo>*) const':
valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp:74:47: error: invalid use of incomplete type 'class MultiFieldInfo'
74 | return multifield_info->at(secondary_index()).name();
| ^
In file included from valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp:28,
fromvalhalla/src/hotspot/share/oops/fieldInfo.cpp:26:
valhalla/src/hotspot/share/oops/fieldInfo.hpp:33:7: note: forward declaration of 'class MultiFieldInfo'
33 | class MultiFieldInfo;
| ^~~~~~~~~~~~~~
In file included from valhalla/src/hotspot/share/oops/fieldInfo.cpp:26:
valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp: In member function 'u2 FieldInfo::multifield_base(Array<MultiFieldInfo>*) const':
valhalla/src/hotspot/share/oops/fieldInfo.inline.hpp:79:65: error: invalid use of incomplete type 'class MultiFieldInfo'
79 | return is_multifield() ? multifield_info->at(secondary_index()).base_index() : index();
```
2. Build jdk fails with "--with-jvm-variants=client"
Here is the log:
```
valhalla/src/hotspot/share/prims/vectorSupport.cpp:312:19: error: 'reassign_fields_by_klass' is not a member of 'Deoptimization'
Deoptimization::reassign_fields_by_klass(payload_class, fr, reg_map, ov, 0, payload_instance(), true, 0, CHECK_NULL)
```