Skip to content
Permalink
Browse files

8236772: Fix build for windows 32-bit after 8212160 and 8234331

Reviewed-by: clanger
  • Loading branch information
Goetz Lindenmaier
Goetz Lindenmaier committed Jan 8, 2020
1 parent b81bfcb commit d6a2a079d16feead9ec5b897d098f659271dbc64
@@ -108,8 +108,8 @@ template <typename T> struct CountLeadingZerosImpl<T, 4> {

template <typename T> struct CountLeadingZerosImpl<T, 8> {
static unsigned doit(T v) {
unsigned long index;
#ifdef _LP64
unsigned long index;
_BitScanReverse64(&index, v);
return 63u - index;
#else
@@ -67,7 +67,8 @@ void JNICALL VMInit(jvmtiEnv* jvmti, JNIEnv* jni, jthread thread) {
jvmti->RunAgentThread(agent_thread, GenerateEventsThread, NULL, JVMTI_THREAD_NORM_PRIORITY);
}

jint Agent_OnLoad(JavaVM* vm, char* options, void* reserved) {
JNIEXPORT
jint JNICALL Agent_OnLoad(JavaVM* vm, char* options, void* reserved) {
jvmtiEnv* jvmti;
vm->GetEnv((void**)&jvmti, JVMTI_VERSION_1_0);

0 comments on commit d6a2a07

Please sign in to comment.