Skip to content

Commit

Permalink
Regressions fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jatin-bhateja committed Sep 4, 2024
1 parent fa94918 commit 407b160
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 46 deletions.
1 change: 1 addition & 0 deletions src/hotspot/share/classfile/classFileParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6405,6 +6405,7 @@ void ClassFileParser::post_process_parsed_stream(const ClassFileStream* const st
}
if (_parsed_annotations->has_annotation(ClassAnnotationCollector::_jdk_internal_NullRestrictedArray)) {
_has_null_restricted_array = true;
_is_implicitly_constructible = _parsed_annotations->has_annotation(ClassAnnotationCollector::_jdk_internal_ImplicitlyConstructible);
}
// Implicit constructibility and null restriction are sufficient to guarantee atomic updates to value based boxed primitives.
if (_parsed_annotations->has_annotation(ClassAnnotationCollector::_jdk_internal_ValueBased) && _has_null_restricted_array && _is_implicitly_constructible) {
Expand Down
3 changes: 1 addition & 2 deletions src/hotspot/share/interpreter/interpreterRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,7 @@ JRT_ENTRY(void, InterpreterRuntime::anewarray(JavaThread* current, ConstantPool*
Klass* klass = pool->klass_at(index, CHECK);
bool has_flat_layout = klass->is_inline_klass() &&
InstanceKlass::cast(klass)->is_implicitly_constructible() &&
InstanceKlass::cast(klass)->has_null_restricted_array() &&
!InstanceKlass::cast(klass)->must_be_atomic();
InstanceKlass::cast(klass)->has_null_restricted_array();
if (has_flat_layout) {
obj = oopFactory::new_valueArray(klass, size, CHECK);
} else {
Expand Down

This file was deleted.

0 comments on commit 407b160

Please sign in to comment.