public static void genReach();
private static Properties props;
- private static native Properties initProperties(Properties props);
+ private static native Properties initProperties();
+
+ static {
+ initProperties();
+ }
public static Properties getProperties() {
return props;
private static void staticStart(Thread t) {
t.run();
+ t.finished = true;
}
public static native void yield();
if(target != null) {
target.run();
}
+ this.finished = true;
}
private native void nativeCreate();
- public final native boolean isAlive();
+ public final boolean isAlive() {
+ return !this.finished;
+ }
}
i.next();
i.set(a[pos]);
}*/
- System.println("Collections.sort() invoked");
+ //TODO System.println("Collections.sort() invoked");
}
} // class Collections
}*/
public StringBuffer format(long l) {
- System.println("Unimplemented DecimalFormat.format(long)");
+ // TODO System.println("Unimplemented DecimalFormat.format(long)");
return new StringBuffer("");
}
public StringBuffer format(double l) {
- System.println("Unimplemented DecimalFormat.format(double)");
+ // TODO System.println("Unimplemented DecimalFormat.format(double)");
return new StringBuffer("");
}
}
public boolean delete() {
- System.println("Unimplemented File.delete()");
+ // TODO System.println("Unimplemented File.delete()");
return false;
}
}
}
return (String[])(v.toArray(new String[0]));*/
- System.println("Unimplemented File.list()");
+ // TODO System.println("Unimplemented File.list()");
return null;
}
}
public static float parseFloat(String str)
{
//return VMFloat.parseFloat(str);
- return (float)Double.parseDouble(str);
+ return (float)(Long.parseLong(str));
}
/**
*/
public void log(LogRecord record)
{
- System.println("Unimplemented Logger.log(LogRecord)");
+ // TODO System.println("Unimplemented Logger.log(LogRecord)");
/*synchronized (lock)
{
if (!isLoggable(record.getLevel()))
*/
public void addHandler(StreamHandler handler) //throws SecurityException
{
- System.println("Unimplemented Logger.addHandler(StreamHandler)");
+ // TODO System.println("Unimplemented Logger.addHandler(StreamHandler)");
/*synchronized (lock)
{
if (handler == null)
*/
/*return (Handler[]) handlerList.toArray(new Handler[handlerList.size()]);
}*/
- System.println("Unimplemented Logger.getHandlers()");
+ // TODO System.println("Unimplemented Logger.getHandlers()");
return new Handler[0];
}
index++;
return index < stackTrace.length ? stackTrace[index] : null;*/
- System.println("Logger.getCallerStackFrame() invoked");
+ // TODO System.println("Logger.getCallerStackFrame() invoked");
return null;
}
public void load(InputStream inStream) throws IOException
{
//load(new InputStreamReader(inStream, "ISO-8859-1"));
- System.println("Properties.load(InputStream) invoked");
+ //TODO System.println("Properties.load(InputStream) invoked");
}
/**
* initialization.*/
protected void outputStaticBlocks(PrintWriter outmethod) {
// execute all the static blocks and all the static field initializations
- // execute all the static blocks and all the static field initializations
+ // execute all the static blocks and all the static field initializations
SymbolTable sctbl = this.state.getSClassSymbolTable();
Iterator it_sclasses = sctbl.getDescriptorsIterator();
if(it_sclasses.hasNext()) {
if(state.MGC) {
outclassdefs.println(" int mutex;");
outclassdefs.println(" volatile int notifycount;");
- outclassdefs.println(" int objlock;");
+ outclassdefs.println(" volatile int objlock;");
if(state.MULTICOREGC) {
outclassdefs.println(" int marked;");
}
if(state.MGC) {
outclassdefs.println(" int mutex;");
outclassdefs.println(" volatile int notifycount;");
- outclassdefs.println(" int objlock;");
+ outclassdefs.println(" volatile int objlock;");
if(state.MULTICOREGC) {
outclassdefs.println(" int marked;");
}
if (state.MGC) {
classdefout.println(" int mutex;");
classdefout.println(" volatile int notifycount;");
- classdefout.println(" int objlock;");
+ classdefout.println(" volatile int objlock;");
if(state.MULTICOREGC) {
classdefout.println(" int marked;");
}
}
return NULL;
#else
- BAMBOO_DEBUGPRINT(0xe003);
BAMBOO_EXIT(0xe003);
#endif
}
#include "mem.h"
#ifndef RAW
#include <stdio.h>
+#include <stdlib.h>
#endif
#ifndef INLINE
#ifdef D___Double______nativeparsedouble____L___String___
double CALL01(___Double______nativeparsedouble____L___String___,struct ___String___ * ___str___) {
- /*int length=VAR(___str___)->___count___;
+ int length=VAR(___str___)->___count___;
int maxlength=(length>60) ? 60 : length;
char str[maxlength+1];
struct ArrayObject * chararray=VAR(___str___)->___value___;
str[i]=((short *)(((char *)&chararray->___length___)+sizeof(int)))[i+offset];
}
str[i]=0;
- double d=atof(str);*/
- printf("Unimplemented Double.nativeparsedouble(S) \n");
- double d = 0.0;
+ double d=0.0; //atof(str); TODO Unimplemented nativeparsedoulbe
return d;
}
#endif
#ifdef D___Double______nativeparsedouble_____AR_B_I_I
double CALL23(___Double______nativeparsedouble_____AR_B_I_I, int start, int length,int start,int length,struct ArrayObject * ___str___) {
- /*int maxlength=(length>60)?60:length;
+ int maxlength=(length>60)?60:length;
char str[maxlength+1];
struct ArrayObject * bytearray=VAR(___str___);
int i;
str[i]=(((char *)&bytearray->___length___)+sizeof(int))[i+start];
}
str[i]=0;
- double d=atof(str);*/
- printf("Unimplemented Double.nativeparsedouble() \n");
- double d = 0.0;
+ double d=0.0; //atof(str); TODO Unimplemented nativeparsedouble
return d;
}
#endif
#endif // MGC
}
+#ifdef D___System______initProperties____
+struct ___Properties___ * CALL00(___System______initProperties____) {
+#ifdef MGC
+ struct ___Properties___ * ___srctmp31736___;
+ struct ___String___ * ___arg42781___;
+ struct ___String___ * ___arg42782___;
+ struct ___String___ * ___s42780___;
+ ___srctmp31736___=allocate_new(76);
+ {
+ ___Properties______Properties____((struct ___Properties___ *) ___srctmp31736___);
+ }
+ global_defs_p->___System______props___ = ___srctmp31736___;
+ ___arg42781___=NewString("line.separator",14);
+ ___arg42782___=NewString("\n",1);
+ {
+ ___s42780___=___System______setProperty____L___String____L___String___((struct ___String___ *) ___arg42781___, (struct ___String___ *) ___arg42782___);
+ }
+#endif // MGC
+}
+#endif
+
/* Object allocation function */
#ifdef MULTICORE_GC