Mercurial > hg > truffle
comparison src/share/vm/graal/graalRuntime.cpp @ 7386:707e9cca11de
fixed HotSpot windows build
fixed Thread.isInterrupted() slowcase
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Tue, 18 Dec 2012 15:05:58 +0100 |
parents | a6bd253a770f |
children | a7a93887b4c4 |
comparison
equal
deleted
inserted
replaced
7256:d0c4b6f8d67f | 7386:707e9cca11de |
---|---|
586 JRT_END | 586 JRT_END |
587 | 587 |
588 JRT_ENTRY(jboolean, GraalRuntime::graal_thread_is_interrupted(JavaThread* thread, oop receiver, jboolean clear_interrupted)) | 588 JRT_ENTRY(jboolean, GraalRuntime::graal_thread_is_interrupted(JavaThread* thread, oop receiver, jboolean clear_interrupted)) |
589 // Ensure that the C++ Thread and OSThread structures aren't freed before we operate | 589 // Ensure that the C++ Thread and OSThread structures aren't freed before we operate |
590 Handle receiverHandle(thread, receiver); | 590 Handle receiverHandle(thread, receiver); |
591 JRT_BLOCK | 591 MutexLockerEx ml(thread->threadObj() == receiver ? NULL : Threads_lock); |
592 MutexLockerEx ml(thread->threadObj() == receiver ? NULL : Threads_lock); | 592 JavaThread* receiverThread = java_lang_Thread::thread(receiverHandle()); |
593 JavaThread* receiverThread = java_lang_Thread::thread(receiverHandle()); | 593 return (jint) Thread::is_interrupted(receiverThread, clear_interrupted != 0); |
594 return (jint) Thread::is_interrupted(receiverThread, clear_interrupted != 0); | |
595 JRT_BLOCK_END | |
596 JRT_END | 594 JRT_END |
597 | 595 |
598 // JVM_InitializeGraalRuntime | 596 // JVM_InitializeGraalRuntime |
599 JVM_ENTRY(jobject, JVM_InitializeGraalRuntime(JNIEnv *env, jclass graalclass)) | 597 JVM_ENTRY(jobject, JVM_InitializeGraalRuntime(JNIEnv *env, jclass graalclass)) |
600 return VMToCompiler::graalRuntimePermObject(); | 598 return VMToCompiler::graalRuntimePermObject(); |