Mercurial > hg > graal-jvmci-8
diff src/share/vm/graal/graalJavaAccess.hpp @ 3661:d24f157f2ba8
Use write barrier in JavaAccess. Fixed thread transition bug.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 17 Nov 2011 17:45:34 +0100 |
parents | 5e9645341ec3 |
children | e0bbc6b1c4a1 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalJavaAccess.hpp Thu Nov 17 17:18:16 2011 +0100 +++ b/src/share/vm/graal/graalJavaAccess.hpp Thu Nov 17 17:45:34 2011 +0100 @@ -265,9 +265,9 @@ instanceKlass* ik = instanceKlass::cast(klassName::klass()); \ address addr = ik->static_field_addr(_##name##_offset - instanceMirrorKlass::offset_of_static_fields()); \ if (UseCompressedOops) { \ - oopDesc::encode_store_heap_oop((narrowOop *)addr, x); \ + oop_store((narrowOop *)addr, x); \ } else { \ - oopDesc::encode_store_heap_oop((oop*)addr, x); \ + oop_store((oop*)addr, x); \ } \ } COMPILER_CLASSES_DO(START_CLASS, END_CLASS, CHAR_FIELD, INT_FIELD, BOOLEAN_FIELD, LONG_FIELD, FLOAT_FIELD, OOP_FIELD, STATIC_OOP_FIELD)