natSystem.cc (SystemClass): New define.
* java/lang/natSystem.cc (SystemClass): New define. (init_properties): Synchronize. From-SVN: r26372
This commit is contained in:
parent
ed45de9838
commit
69d5914bd0
4 changed files with 15 additions and 11 deletions
|
@ -45,6 +45,9 @@ details. */
|
|||
#include <java/io/PrintStream.h>
|
||||
#include <java/io/InputStream.h>
|
||||
|
||||
#define SystemClass _CL_Q34java4lang6System
|
||||
extern java::lang::Class SystemClass;
|
||||
|
||||
|
||||
|
||||
#if defined (ECOS)
|
||||
|
@ -175,9 +178,13 @@ java::lang::System::identityHashCode (jobject obj)
|
|||
void
|
||||
java::lang::System::init_properties (void)
|
||||
{
|
||||
if (prop_init)
|
||||
return;
|
||||
prop_init = true;
|
||||
{
|
||||
// We only need to synchronize around this gatekeeper.
|
||||
JvSynchronize sync (&SystemClass);
|
||||
if (prop_init)
|
||||
return;
|
||||
prop_init = true;
|
||||
}
|
||||
|
||||
properties = new java::util::Properties ();
|
||||
// A convenience define.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue