Use UpperCamelCase

This commit is contained in:
Chen Liang 2026-01-26 13:21:06 -06:00
parent e33f01e020
commit 77ec309b63
2 changed files with 3 additions and 3 deletions

View File

@ -235,13 +235,13 @@ ciConstant ciObject::identity_hash() {
return ciConstant(T_INT, 0);
}
// Handle identity hash as if it were a field value.
ciConstant value = check_constant_value_cache(identityHashKey, T_INT);
ciConstant value = check_constant_value_cache(IdentityHashKey, T_INT);
if (!value.is_valid()) {
VM_ENTRY_MARK;
jint identity_hash = checked_cast<jint>(get_oop()->fast_identity_hash_or_no_hash());
value = ciConstant(T_INT, identity_hash);
// Cache observed state so it doesn't change during compilation.
add_to_constant_value_cache(identityHashKey, value);
add_to_constant_value_cache(IdentityHashKey, value);
}
if (value.as_int() != markWord::no_hash) {
return value;

View File

@ -74,7 +74,7 @@ private:
};
// The reserved key for identity hash code
static constexpr int identityHashKey = -1;
static constexpr int IdentityHashKey = -1;
GrowableArray<ConstantValue>* _constant_values = nullptr;
protected: