8236772: Fix build for windows 32-bit after 8212160 and 8234331
Reviewed-by: clanger
This commit is contained in:
parent
b81bfcbff1
commit
d6a2a079d1
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user