This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: [PATCH]: MIPS enhancements to libgcj...


Jeff Sturm wrote:

I'm certainly no MIPS expert, so others might comment on the llsc stuff.
However:

+inline static void
+release_set(volatile obj_addr_t *addr, obj_addr_t new_val)
+{
+  __asm__ __volatile__("sync" : :);
+  *(addr) = new_val;
+}

Probably want a memory clobber here...


Perhaps, can anyone verify that?

Or if "sync" is even needed?

Or if "sync" is available on most/all CPUs?





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]