183N/A/*
2362N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
268N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
268N/A *
268N/A * This code is free software; you can redistribute it and/or modify it
268N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
268N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
268N/A *
268N/A * This code is distributed in the hope that it will be useful, but WITHOUT
268N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
268N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
268N/A * version 2 for more details (a copy is included in the LICENSE file that
268N/A * accompanied this code).
268N/A *
268N/A * You should have received a copy of the GNU General Public License version
268N/A * 2 along with this work; if not, write to the Free Software Foundation,
268N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
268N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
183N/A */
183N/A
183N/Apackage sun.tracing.dtrace;
183N/A
183N/Aimport java.lang.reflect.Method;
183N/A
183N/A/**
183N/A * Container class for JVM interface native methods
183N/A *
183N/A * @since 1.7
183N/A */
183N/Aclass JVM {
183N/A
183N/A static {
183N/A java.security.AccessController.doPrivileged(
183N/A new sun.security.action.LoadLibraryAction("jsdt"));
183N/A }
183N/A
183N/A static long activate(String moduleName, DTraceProvider[] providers) {
183N/A return activate0(moduleName, providers);
183N/A }
183N/A
183N/A static void dispose(long handle) {
183N/A dispose0(handle);
183N/A }
183N/A
183N/A static boolean isEnabled(Method m) {
183N/A return isEnabled0(m);
183N/A }
183N/A
183N/A static boolean isSupported() {
183N/A return isSupported0();
183N/A }
183N/A
183N/A static Class<?> defineClass(
183N/A ClassLoader loader, String name, byte[] b, int off, int len) {
183N/A return defineClass0(loader, name, b, off, len);
183N/A }
183N/A
183N/A private static native long activate0(
183N/A String moduleName, DTraceProvider[] providers);
183N/A private static native void dispose0(long activation_handle);
183N/A private static native boolean isEnabled0(Method m);
183N/A private static native boolean isSupported0();
183N/A private static native Class<?> defineClass0(
183N/A ClassLoader loader, String name, byte[] b, int off, int len);
183N/A}