Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (22 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libjava/java/lang/natObject.cc

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    11// natObject.cc - Implementation of the Object class.
    22
    3 /* Copyright (C) 1998, 1999, 2000, 2001  Free Software Foundation
     3/* Copyright (C) 1998, 1999, 2000, 2001  Free Software Foundation
    44
    55   This file is part of libgcj.
     
    1010
    1111#include <config.h>
     12
    1213
    1314#include <string.h>
     
    308309#include <limits.h>
    309310#include <unistd.h>     // for usleep, sysconf.
    310 #include <sched.h>      // for sched_yield.
    311311#include <gcj/javaprims.h>
    312312#include <sysdep/locks.h>
     313
    313314
    314315// Try to determine whether we are on a multiprocessor, i.e. whether
     
    528529  else if (n < yield_limit)
    529530    {
    530       sched_yield();
     531      ield();
    531532    }
    532533  else
     
    534535      unsigned duration = MIN_SLEEP_USECS << (n - yield_limit);
    535536      if (n >= 15 + yield_limit || duration > MAX_SLEEP_USECS)
    536         duration = MAX_SLEEP_USECS;
    537       usleep(duration);
     537duration = MAX_SLEEP_USECS;
     538      usleep(duration);
    538539    }
    539540}
     
    577578{
    578579  heavy_lock *hl = (heavy_lock *)cd;
     580
     581
     582
     583
     584
     585
     586
    579587  obj_addr_t addr = (obj_addr_t)obj;
     588
    580589  hash_entry *he = light_locks + JV_SYNC_HASH(addr);
    581590  obj_addr_t he_address = (he -> address & ~LOCKED);
     
    756765_Jv_MonitorEnter (jobject obj)
    757766{
     767
     768
     769
    758770  obj_addr_t addr = (obj_addr_t)obj;
     771
    759772  obj_addr_t address;
    760773  unsigned hash = JV_SYNC_HASH(addr);
     
    901914_Jv_MonitorExit (jobject obj)
    902915{
     916
     917
     918
    903919  obj_addr_t addr = (obj_addr_t)obj;
     920
    904921  _Jv_ThreadId_t self = _Jv_ThreadSelf();
    905922  unsigned hash = JV_SYNC_HASH(addr);
     
    10811098java::lang::Object::wait (jlong timeout, jint nanos)
    10821099{
     1100
     1101
     1102
    10831103  obj_addr_t addr = (obj_addr_t)this;
     1104
    10841105  _Jv_ThreadId_t self = _Jv_ThreadSelf();
    10851106  unsigned hash = JV_SYNC_HASH(addr);
     
    11581179java::lang::Object::notify (void)
    11591180{
     1181
     1182
     1183
    11601184  obj_addr_t addr = (obj_addr_t)this;
     1185
    11611186  _Jv_ThreadId_t self = _Jv_ThreadSelf();
    11621187  unsigned hash = JV_SYNC_HASH(addr);
     
    12031228java::lang::Object::notifyAll (void)
    12041229{
     1230
     1231
     1232
    12051233  obj_addr_t addr = (obj_addr_t)this;
     1234
    12061235  _Jv_ThreadId_t self = _Jv_ThreadSelf();
    12071236  unsigned hash = JV_SYNC_HASH(addr);
Note: See TracChangeset for help on using the changeset viewer.