Commit Graph

10008 Commits

Author SHA1 Message Date
Joel Dice
9f5c2f4122 implement Arrays.sort 2007-12-03 16:32:54 -07:00
Eric Scharff
3cc1232fc2 sys/wait.h should only be included when NOT compiling for win32 2007-12-03 13:25:46 -07:00
James Sanders
3f8a370ba8 Implemented Runtime.exec, Process.waitFor and Process.exitValue for non-windows 2007-11-30 16:39:51 -07:00
James Sanders
266c256116 Added IllegalThreadStateException, which is used by java.lang.Process 2007-11-30 16:11:06 -07:00
James Sanders
156bd5cf1a Merge branch 'master' of dice.readytalk.com:/home/dicej/git/vm 2007-11-29 18:01:17 -07:00
James Sanders
8f652ce12d Implemented native Process.exitValue and Process.waitFor on windows 2007-11-29 18:01:07 -07:00
Joel Dice
c881f32d7c Merge branch 'master' of dice:git/vm 2007-11-29 08:04:22 -07:00
Joel Dice
0a63fc3865 fix a couple thinkos in jnienv.cpp 2007-11-29 08:04:07 -07:00
Joel Dice
d8374a76e2 check again for entry in monitorMap after entering the exclusive state in objectMonitor() in case another thread beat us to creating a monitor for the object 2007-11-29 08:03:45 -07:00
James Sanders
b6ad93856d Merge branch 'master' of dice.readytalk.com:/home/dicej/git/vm 2007-11-28 17:52:23 -07:00
James Sanders
bf102aa1a8 implemented Runtime.exec(String) and Runtime.exec(String[]) 2007-11-28 17:52:08 -07:00
James Sanders
3f0e8a9777 Implemented Runtime.exec(String) and Runtime.exec(String[]) and added test class 2007-11-28 17:51:00 -07:00
Eric Scharff
51c198f0f0 Implemented java.lang.Math.random() properly (seeding the random number
on first use, and then using the system random number generator)
2007-11-28 17:06:04 -07:00
Joel Dice
d24b633665 fix return value of ByteArrayOutputStream.size() 2007-11-27 16:59:49 -07:00
Joel Dice
5b6a63cbca avoid uninitialized value warnings 2007-11-27 16:04:15 -07:00
Joel Dice
5fa7b074b4 various threading bugfixes 2007-11-27 15:23:00 -07:00
Joel Dice
56a5cf2503 fix thinko in jsr_w implementation 2007-11-27 15:22:05 -07:00
Joel Dice
74235ea33c add ByteArrayOutputStream.size() 2007-11-27 10:30:55 -07:00
Joel Dice
6ac124f2fb protect local variables in red-black tree implementation from GC 2007-11-27 08:46:31 -07:00
Joel Dice
466c958d2b implement persistent red-black tree in util.cpp based on PersistentSet.java 2007-11-26 18:40:47 -07:00
Joel Dice
0bbe9489a7 flesh out call tracing in new JIT code 2007-11-26 16:15:53 -07:00
Joel Dice
49ed41daa0 refactor stack walking interface in processor.h and sketch stack walking implementation in compile2.cpp 2007-11-25 16:00:55 -07:00
Joel Dice
856935acc2 more work on new JIT code 2007-11-21 15:15:33 -07:00
Joel Dice
a017dab73a handle weak maps properly in hashMapResize, hashMapRemove, etc.; move Processor::parameterFootprint() into machine.h/machine.cpp 2007-11-20 15:24:02 -07:00
Joel Dice
6fe0c4636f various bugfixes and tweaks in reflection 2007-11-20 13:40:07 -07:00
Joel Dice
ded1016b32 clean up compile2.cpp so it compiles (but does not yet link) 2007-11-20 09:21:17 -07:00
Joel Dice
6c8a35c341 move populateMultiArray from interpret.cpp to process.h 2007-11-20 09:20:26 -07:00
Joel Dice
37a1aa72f9 sketch of Frame class implementation for new JIT code 2007-11-19 14:37:50 -07:00
Joel Dice
2eeff1d50e sketch implementations of lookupswitch and tableswitch 2007-11-19 08:11:39 -07:00
Joel Dice
7eb49f272c sketch or stub-out remaining instructions in new JIT code 2007-11-18 13:32:31 -07:00
Joel Dice
e9fc1d9057 initial sketch of new JIT code 2007-11-18 12:19:27 -07:00
Joel Dice
cab88c7e1f remove JIT-related data structures from types.def since that code is being reworked 2007-11-18 12:18:37 -07:00
Joel Dice
d105a180db remove unecessary namespace qualifier 2007-11-18 12:17:14 -07:00
Joel Dice
80f23a5040 implement Class.getEnumConstants 2007-11-17 11:39:29 -07:00
Joel Dice
4f047ded8c make ArrayList.set() do bounds checking 2007-11-15 11:53:33 -07:00
Joel Dice
a6a1f8ba98 make ByteBuffer implement Comparable 2007-11-15 11:53:01 -07:00
Joel Dice
3570beaba9 specify -DNDEBUG cflag in debug mode to improve performance when debugging large apps 2007-11-14 16:23:15 -07:00
Joel Dice
115622f54a add GetArrayLength, NewObject, NewObjectV, MonitorEnter, and MonitorExit JNIEnv methods 2007-11-14 16:22:29 -07:00
Joel Dice
69f1024887 add missing classpath methods 2007-11-14 09:32:36 -07:00
Joel Dice
d1048f9bcb implement ByteBuffer.get(byte[]) 2007-11-09 14:32:33 -07:00
Joel Dice
7b8fb7233e add PersistentSet.toString(), fix a bug when removing the last element, and add a couple sanity checks 2007-11-09 08:08:35 -07:00
Joel Dice
fef3cddb9e fix build breakage due to missing isEmpty() methods 2007-11-07 09:48:09 -07:00
Joel Dice
4611c89dbe add a few classpath methods 2007-11-06 17:41:53 -07:00
Eric Scharff
76d876c039 Removed custom logging code, which is factored correctly elsewhere. 2007-11-06 11:20:12 -07:00
Joel Dice
313816ee34 minor tweaks to reduce memory usage 2007-11-06 08:29:05 -07:00
Joel Dice
fe0e542afe finish support for inline vtables in class objects; convert constant pools from arrays to singletons to reduce memory footprint 2007-11-05 14:40:17 -07:00
Joel Dice
f1bc2be9f9 if we can't resolve a bootstrap class in isAssignableFrom(), we swallow the exception and return false 2007-11-05 09:08:08 -07:00
Joel Dice
fe0708c09a check for all non-virtual methods in invoke(), not just static ones 2007-11-05 08:52:03 -07:00
Joel Dice
16ea75f91c preserve vm flags of bootstrap class (except for BootstrapFlag) in updateBootstrapClass() 2007-11-05 08:39:48 -07:00
Joel Dice
19d36cc463 implement impdep1 instruction for lazily loading bootstrap classes 2007-11-05 08:29:43 -07:00