/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#include <stdlib.h>
#include "jvm.h"
#include "jni.h"
#include "jni_util.h"
#include "jvm_symbols.h"
#include "sun_tracing_dtrace_JVM.h"
#ifdef __cplusplus
extern "C" {
#endif
static void initialize() {
static int initialized = 0;
if (initialized == 0) {
initialized = 1;
}
}
/*
* Class: sun_tracing_dtrace_JVM
* Method: isSupported0
* Signature: ()I
*/
initialize();
if (jvm_symbols != NULL) {
} else {
return JNI_FALSE;
}
}
// Macros that cause an immediate return if we detect an exception
static void readProbeData (
return; // just in case
}
}
static void readFieldInterfaceAttributes(
}
static void readInterfaceAttributes(
}
static void readProviderData(
jsize i;
// Fill JVM structure, describing provider
for (i = 0; i < jvm_provider->probe_count; ++i) {
}
}
/*
* Class: sun_tracing_dtrace_JVM
* Method: activate0
* Signature: ()J
*/
jsize i;
initialize();
if (jvm_symbols == NULL) {
return 0;
}
num_providers, sizeof(*jvm_providers));
for (i = 0; i < num_providers; ++i) {
JVM_DTraceProvider* p = &(jvm_providers[i]);
}
for (i = 0; i < num_providers; ++i) {
JVM_DTraceProvider* p = &(jvm_providers[i]);
}
return handle;
}
/*
* Class: sun_tracing_dtrace_JVM
* Method: dispose0
* Signature: (J)V
*/
}
}
/*
* Class: sun_tracing_dtrace_JVM
* Method: isEnabled0
*/
}
return JNI_FALSE;
}
/*
* Class: sun_tracing_dtrace_JVM
* Method: defineClass0
*
* The implementation of this native static method is a copy of that of
* the native instance method Java_java_lang_ClassLoader_defineClass0()
* with the implicit "this" parameter becoming the "loader" parameter.
*
* This code was cloned and modified from java_lang_reflect_Proxy
*/
{
char *utfName;
return 0;
}
/* Work around 4153825. malloc crashes on Solaris when passed a
* negative size.
*/
if (length < 0) {
return 0;
}
if (body == 0) {
return 0;
}
goto free_body;
int i;
goto free_body;
}
} else {
}
// Convert '.' to '/' in the package name
for (i = 0; i < unicode_len; ++i) {
if (utfName[i] == '.') {
utfName[i] = '/';
}
}
} else {
}
return result;
}
#ifdef __cplusplus
}
#endif