From: Stefan Ring Date: Tue, 18 May 2010 08:25:25 +0000 (+0200) Subject: * src/native/vm/openjdk/sun_misc_Perf.cpp: Implement just the bare minimum X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=cacao.git;a=commitdiff_plain;h=7997b6d4e166c1e993f66f2fef0cffbf778072cd * src/native/vm/openjdk/sun_misc_Perf.cpp: Implement just the bare minimum required for bootstrapping OpenJDK 7 (PR 139). --- diff --git a/src/native/vm/openjdk/sun_misc_Perf.cpp b/src/native/vm/openjdk/sun_misc_Perf.cpp index 8fb75bb53..8707dca18 100644 --- a/src/native/vm/openjdk/sun_misc_Perf.cpp +++ b/src/native/vm/openjdk/sun_misc_Perf.cpp @@ -72,6 +72,7 @@ JNIEXPORT jobject JNICALL Java_sun_misc_Perf_createByteArray(JNIEnv *env, jobjec return NULL; } +static uint64_t dummy_perf; /* * Class: sun/misc/Perf @@ -80,8 +81,7 @@ JNIEXPORT jobject JNICALL Java_sun_misc_Perf_createByteArray(JNIEnv *env, jobjec */ JNIEXPORT jobject JNICALL Java_sun_misc_Perf_createLong(JNIEnv *env, jobject _this, jstring name, jint variability, jint units, jlong value) { - log_println("Java_sun_misc_Perf_createLong: Not supported!"); - return NULL; + return env->functions->NewDirectByteBuffer(env, &dummy_perf, sizeof(dummy_perf)); }