Skip to content

Commit 9513758

Browse files
committed
8374662: Remove unused type check functions from javaClasses.hpp
Reviewed-by: jsjolen
1 parent 70669d0 commit 9513758

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

src/hotspot/share/classfile/javaClasses.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2026, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -4297,10 +4297,6 @@ int jdk_internal_foreign_abi_NativeEntryPoint::_downcall_stub_address_offset;
42974297
macro(_method_type_offset, k, "methodType", java_lang_invoke_MethodType_signature, false); \
42984298
macro(_downcall_stub_address_offset, k, "downcallStubAddress", long_signature, false);
42994299

4300-
bool jdk_internal_foreign_abi_NativeEntryPoint::is_instance(oop obj) {
4301-
return obj != nullptr && is_subclass(obj->klass());
4302-
}
4303-
43044300
void jdk_internal_foreign_abi_NativeEntryPoint::compute_offsets() {
43054301
InstanceKlass* k = vmClasses::NativeEntryPoint_klass();
43064302
NEP_FIELDS_DO(FIELD_COMPUTE_OFFSET);
@@ -4337,10 +4333,6 @@ int jdk_internal_foreign_abi_ABIDescriptor::_scratch2_offset;
43374333
macro(_scratch1_offset, k, "scratch1", jdk_internal_foreign_abi_VMStorage_signature, false); \
43384334
macro(_scratch2_offset, k, "scratch2", jdk_internal_foreign_abi_VMStorage_signature, false);
43394335

4340-
bool jdk_internal_foreign_abi_ABIDescriptor::is_instance(oop obj) {
4341-
return obj != nullptr && is_subclass(obj->klass());
4342-
}
4343-
43444336
void jdk_internal_foreign_abi_ABIDescriptor::compute_offsets() {
43454337
InstanceKlass* k = vmClasses::ABIDescriptor_klass();
43464338
ABIDescriptor_FIELDS_DO(FIELD_COMPUTE_OFFSET);

src/hotspot/share/classfile/javaClasses.hpp

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2026, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -1179,13 +1179,6 @@ class jdk_internal_foreign_abi_NativeEntryPoint: AllStatic {
11791179
static oop method_type(oop entry);
11801180
static jlong downcall_stub_address(oop entry);
11811181

1182-
// Testers
1183-
static bool is_subclass(Klass* klass) {
1184-
return vmClasses::NativeEntryPoint_klass() != nullptr &&
1185-
klass->is_subclass_of(vmClasses::NativeEntryPoint_klass());
1186-
}
1187-
static bool is_instance(oop obj);
1188-
11891182
// Accessors for code generation:
11901183
static int method_type_offset_in_bytes() { return _method_type_offset; }
11911184
static int downcall_stub_address_offset_in_bytes() { return _downcall_stub_address_offset; }
@@ -1216,13 +1209,6 @@ class jdk_internal_foreign_abi_ABIDescriptor: AllStatic {
12161209
static jint shadowSpace(oop entry);
12171210
static oop scratch1(oop entry);
12181211
static oop scratch2(oop entry);
1219-
1220-
// Testers
1221-
static bool is_subclass(Klass* klass) {
1222-
return vmClasses::ABIDescriptor_klass() != nullptr &&
1223-
klass->is_subclass_of(vmClasses::ABIDescriptor_klass());
1224-
}
1225-
static bool is_instance(oop obj);
12261212
};
12271213

12281214
class jdk_internal_foreign_abi_VMStorage: AllStatic {

0 commit comments

Comments
 (0)