home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / j2sdk / files / linux / j2sdklin.bin / jdk1.3.1 / include-old / oldnmi.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-05-06  |  1.2 KB  |  52 lines

  1. /*
  2.  * @(#)oldnmi.h    1.4 00/02/02
  3.  *
  4.  * Copyright 1994-2000 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the proprietary information of Sun Microsystems, Inc.  
  7.  * Use is subject to license terms.
  8.  * 
  9.  */
  10.  
  11. #ifndef _JAVASOFT__OLDNMI_H__
  12. #define _JAVASOFT__OLDNMI_H__
  13.  
  14. #include "oobj.h"
  15. #include "interpreter.h"
  16. #include "java_lang_String.h"
  17.  
  18. ClassClass * Thread_classblock;
  19.  
  20. ClassClass* get_classClass(void);
  21. ClassClass* get_classObject(void);
  22.  
  23. /*
  24.  * Old allocation interfaces.
  25.  */
  26.  
  27. JHandle *ObjAlloc(ClassClass *cb, int ignored);
  28. JHandle *ArrayAlloc(int type, int size);
  29.  
  30. /*
  31.  * Old version of the monitor interface.
  32.  */
  33.  
  34. void monitorEnter(uintptr_t);
  35. void monitorExit(uintptr_t);
  36. void monitorWait(uintptr_t, int64_t);
  37. void monitorNotify(uintptr_t);
  38. void monitorNotifyAll(uintptr_t);
  39.  
  40. /*
  41.  * Get the characters of the String object into a unicode string buffer.
  42.  * No allocation occurs. Assumes that len is less than or equal to
  43.  * the length of the string, and that the buf is at least len+1 unicodes
  44.  * in size. The unicode buffer's address is returned.
  45.  */
  46. unicode *javaString2unicode(Hjava_lang_String *, unicode *, int);
  47.  
  48. HObject *newobject(ClassClass *cb, unsigned char *pc, struct execenv *ee);
  49.  
  50.  
  51. #endif /* !_JAVASOFT__OLDNMI_H__ */
  52.