Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/sharedRuntime.cpp @ 8968:e41c32a4d573
Change the register_finalizer stub to not overwrite any registers.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 09 Apr 2013 19:28:34 +0200 |
parents | 37977d1dcedc |
children | f94bb5d20e5d |
comparison
equal
deleted
inserted
replaced
8944:e7766460ddb3 | 8968:e41c32a4d573 |
---|---|
967 os::yield_all(attempts); | 967 os::yield_all(attempts); |
968 JRT_END | 968 JRT_END |
969 | 969 |
970 | 970 |
971 JRT_ENTRY_NO_ASYNC(void, SharedRuntime::register_finalizer(JavaThread* thread, oopDesc* obj)) | 971 JRT_ENTRY_NO_ASYNC(void, SharedRuntime::register_finalizer(JavaThread* thread, oopDesc* obj)) |
972 #ifdef GRAAL | |
973 if (!obj->klass()->has_finalizer()) { | |
974 return; | |
975 } | |
976 #endif | |
972 assert(obj->is_oop(), "must be a valid oop"); | 977 assert(obj->is_oop(), "must be a valid oop"); |
973 assert(obj->klass()->has_finalizer(), "shouldn't be here otherwise"); | 978 assert(obj->klass()->has_finalizer(), "shouldn't be here otherwise"); |
974 InstanceKlass::register_finalizer(instanceOop(obj), CHECK); | 979 InstanceKlass::register_finalizer(instanceOop(obj), CHECK); |
975 JRT_END | 980 JRT_END |
976 | 981 |