Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalRuntime.cpp @ 7220:fcae6d960acd
added more compiler intrinsics
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Tue, 11 Dec 2012 08:28:00 +0100 |
parents | 5a95c784febf |
children | 2ae3e26b7e9a |
comparison
equal
deleted
inserted
replaced
7219:69b3b2695fea | 7220:fcae6d960acd |
---|---|
593 if (newline) { | 593 if (newline) { |
594 tty->cr(); | 594 tty->cr(); |
595 } | 595 } |
596 JRT_END | 596 JRT_END |
597 | 597 |
598 JRT_ENTRY(jint, GraalRuntime::graal_identity_hash_code(JavaThread* thread, oop obj)) | |
599 return (jint) obj->identity_hash(); | |
600 JRT_END | |
601 | |
602 JRT_ENTRY(jboolean, GraalRuntime::graal_thread_is_interrupted(JavaThread* thread, oop receiver, jboolean clear_interrupted)) | |
603 // TEMP: | |
604 tty->print_cr("ThreadIsInterruptedSlowCase"); | |
605 | |
606 // Ensure that the C++ Thread and OSThread structures aren't freed before we operate | |
607 Handle receiverHandle(thread, receiver); | |
608 JRT_BLOCK | |
609 MutexLockerEx ml(thread->threadObj() == receiver ? NULL : Threads_lock); | |
610 JavaThread* receiverThread = java_lang_Thread::thread(receiverHandle()); | |
611 return (jint) Thread::is_interrupted(receiverThread, clear_interrupted != 0); | |
612 JRT_BLOCK_END | |
613 JRT_END | |
614 | |
598 // JVM_InitializeGraalRuntime | 615 // JVM_InitializeGraalRuntime |
599 JVM_ENTRY(jobject, JVM_InitializeGraalRuntime(JNIEnv *env, jclass graalclass)) | 616 JVM_ENTRY(jobject, JVM_InitializeGraalRuntime(JNIEnv *env, jclass graalclass)) |
600 return VMToCompiler::graalRuntimePermObject(); | 617 return VMToCompiler::graalRuntimePermObject(); |
601 JVM_END | 618 JVM_END |