Commit a16c1ab0 authored by aph's avatar aph
Browse files

2009-01-12 Andrew Haley <aph@redhat.com>

	* sun/misc/natUnsafe.cc (spinlock contructor): Call sched_yield().



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143302 138bc75d-0d04-0410-961f-82ee72b054a4
parent 55e0e460
2009-01-12 Andrew Haley <aph@redhat.com>
* sun/misc/natUnsafe.cc (spinlock contructor): Call sched_yield().
2009-01-11 Matthias Klose <doko@ubuntu.com>
* Makefile.am (ecjx_LDADD): Add $(extra_ldflags).
......
// natUnsafe.cc - Implementation of sun.misc.Unsafe native methods.
/* Copyright (C) 2006
/* Copyright (C) 2006, 2007
Free Software Foundation
This file is part of libgcj.
......@@ -32,7 +32,7 @@ public:
spinlock ()
{
while (! compare_and_swap (&lock, 0, 1))
;
_Jv_ThreadYield ();
}
~spinlock ()
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment