Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.lang.reflect.Method;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.security.ProtectionDomain;
import java.util.function.BiConsumer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -403,15 +402,6 @@ public static int pageSize() {
return HBaseUnsafeInternal.pageSize();
}

public static Class<?> defineClass(String name, byte[] b, int off, int len, ClassLoader loader,
ProtectionDomain protectionDomain) {
return HBaseUnsafeInternal.defineClass(name, b, off, len, loader, protectionDomain);
}

public static Class<?> defineAnonymousClass(Class<?> hostClass, byte[] data, Object[] cpPatches) {
return HBaseUnsafeInternal.defineAnonymousClass(hostClass, data, cpPatches);
}

public static Object allocateInstance(Class<?> cls) throws InstantiationException {
return HBaseUnsafeInternal.allocateInstance(cls);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.lang.reflect.Field;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.security.ProtectionDomain;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sun.misc.Unsafe;
Expand Down Expand Up @@ -254,15 +253,6 @@ public static int pageSize() {
return UNSAFE.pageSize();
}

public static Class<?> defineClass(String name, byte[] b, int off, int len, ClassLoader loader,
ProtectionDomain protectionDomain) {
return UNSAFE.defineClass(name, b, off, len, loader, protectionDomain);
}

public static Class<?> defineAnonymousClass(Class<?> hostClass, byte[] data, Object[] cpPatches) {
return UNSAFE.defineAnonymousClass(hostClass, data, cpPatches);
}

public static Object allocateInstance(Class<?> cls) throws InstantiationException {
return UNSAFE.allocateInstance(cls);
}
Expand Down