Skip to content

Commit a267a9c

Browse files
author
Richard Antal
committed
HBASE-29545 Remove usage of Unsafe.defineClass
1 parent 1a48e6d commit a267a9c

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

hbase-unsafe/src/main/java/org/apache/hadoop/hbase/unsafe/HBasePlatformDependent.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -403,15 +403,6 @@ public static int pageSize() {
403403
return HBaseUnsafeInternal.pageSize();
404404
}
405405

406-
public static Class<?> defineClass(String name, byte[] b, int off, int len, ClassLoader loader,
407-
ProtectionDomain protectionDomain) {
408-
return HBaseUnsafeInternal.defineClass(name, b, off, len, loader, protectionDomain);
409-
}
410-
411-
public static Class<?> defineAnonymousClass(Class<?> hostClass, byte[] data, Object[] cpPatches) {
412-
return HBaseUnsafeInternal.defineAnonymousClass(hostClass, data, cpPatches);
413-
}
414-
415406
public static Object allocateInstance(Class<?> cls) throws InstantiationException {
416407
return HBaseUnsafeInternal.allocateInstance(cls);
417408
}

hbase-unsafe/src/main/java/org/apache/hadoop/hbase/unsafe/HBaseUnsafeInternal.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,6 @@ public static int pageSize() {
254254
return UNSAFE.pageSize();
255255
}
256256

257-
public static Class<?> defineClass(String name, byte[] b, int off, int len, ClassLoader loader,
258-
ProtectionDomain protectionDomain) {
259-
return UNSAFE.defineClass(name, b, off, len, loader, protectionDomain);
260-
}
261-
262-
public static Class<?> defineAnonymousClass(Class<?> hostClass, byte[] data, Object[] cpPatches) {
263-
return UNSAFE.defineAnonymousClass(hostClass, data, cpPatches);
264-
}
265-
266257
public static Object allocateInstance(Class<?> cls) throws InstantiationException {
267258
return UNSAFE.allocateInstance(cls);
268259
}

0 commit comments

Comments
 (0)