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

Reviewed-by: clanger
This commit is contained in:
Goetz Lindenmaier 2020-01-08 14:22:30 +01:00
parent b81bfcbff1
commit d6a2a079d1
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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);