Commit Graph

1084 Commits

Author SHA1 Message Date
Eric Scharff
11d218f956 Slight fix for improved type safety 2008-02-28 10:03:24 -07:00
Eric Scharff
0d5b7bd126 Support for floating point conversions and tests
Floats and doubles can now be read from strings, using the C standard library
functions for this purpose (strtof and strtod).  The code also relies on
standard library functions to implement isNaN() and isInfinite()
2008-02-28 08:35:16 -07:00
Eric Scharff
73e7bfc1dc Added constructor for java.util.HashMap 2008-02-28 08:33:52 -07:00
Eric Scharff
eaa8d5c64b Trivial implementation of java.util.Random.nextInt(int n) 2008-02-26 09:37:46 -07:00
Joel Dice
2edaa82801 prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Dain
8a0ffe186f Adds appending of doubles to a StringBuffer 2008-01-30 16:26:30 -07:00
Joel Dice
7a262d0578 add java.lang.OutOfMemoryError 2008-01-29 08:18:23 -07:00
Joel Dice
707359d555 remove redundant synchronization from Collections.SynchronizedCollection 2008-01-28 08:10:23 -07:00
Dain
6926ca6778 Added parsing of new line characters in properties files. 2008-01-23 16:39:45 -07:00
Joel Dice
35160e46d8 don't include embedded boot classpath in libvm.a, only the executable 2008-01-18 17:54:36 -07:00
Joel Dice
bb701f309c implement StringBuffer.append(boolean) 2008-01-18 16:16:24 -07:00
Joel Dice
dc6c7e9121 use more conventional os.name properties 2008-01-18 08:35:20 -07:00
Joel Dice
86704591e7 Throwable.initCause should return 'this' 2008-01-03 10:08:33 -07:00
Joel Dice
be5600d79d fix Integer.toHexString to treat its argument as unsigned 2007-12-26 12:17:52 -07:00
Joel Dice
f116225933 fix 64-bit arithmetic support on x86-32 2007-12-22 17:00:35 -07:00
Joel Dice
c53470f9c8 Merge branch 'master' of dice.ecovate.com:git/vm 2007-12-21 17:27:49 -07:00
Joel Dice
a867e4d587 snapshot 2007-12-21 17:26:55 -07:00
James Sanders
8c56845616 Added support for Math.cos 2007-12-21 14:10:40 -07:00
Eric Scharff
6954c9c377 Fixes for PushbackReader (which only can push back one char) and StringReader. 2007-12-18 12:19:52 -07:00
Eric Scharff
8b2577b77c Add method to create one hashtable from a map, useful in converting a
HashMap into a Hashtable.
2007-12-18 11:23:59 -07:00
Eric Scharff
7224c98766 Trivial implementation of java.util.Random 2007-12-17 15:43:51 -07:00
Eric Scharff
5af58548b7 Removed unused variable in StringBuilder. 2007-12-14 16:16:40 -07:00
Joel Dice
216224dcc4 fix length tracking bugs in StringBuilder 2007-12-13 09:19:58 -07:00
Eric Scharff
ec653fbc1e Use the default line separator when logging 2007-12-11 10:26:28 -07:00
Joel Dice
fc78e122c0 Merge branch 'master' of dice:git/vm 2007-12-03 16:36:57 -07:00
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
8f652ce12d Implemented native Process.exitValue and Process.waitFor on windows 2007-11-29 18:01:07 -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
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
74235ea33c add ByteArrayOutputStream.size() 2007-11-27 10:30:55 -07:00
Joel Dice
6fe0c4636f various bugfixes and tweaks in reflection 2007-11-20 13:40:07 -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
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
94e9bd0fd2 clean up bootstrap type generation to eliminate redundancy (broken) 2007-11-04 14:15:28 -07:00
Joel Dice
7dfbd87a40 bugfixes 2007-11-02 15:42:19 -06:00
Joel Dice
e820b6a8a4 sketch of singleton support 2007-11-02 15:08:14 -06:00
Joel Dice
b71d5104ba snapshot 2007-11-01 13:24:09 -06:00
Joel Dice
7a4cca45c2 fix subtle length vs. limit bug in ByteArrayInputStream 2007-10-31 10:11:14 -06:00
Eric Scharff
1d04186a0c Fixed bug in ByteBuffer.getLong() 2007-10-31 09:27:26 -06:00
Eric Scharff
2fd2df53fd Fixed thinko in ByteArrayInputStream 2007-10-30 16:52:24 -06:00
Eric Scharff
b85c643251 Minor optimization for ByteArrayInputStream 2007-10-30 15:37:46 -06:00
Eric Scharff
907ce57975 Order of arraycopy backwards 2007-10-30 15:10:32 -06:00
Eric Scharff
df79f410f1 Optimize bulk reads from ByteArrayInputStream 2007-10-30 15:08:49 -06:00
Eric Scharff
958d39aa03 Add debug information for ByteBuffer 2007-10-30 14:55:00 -06:00
Joel Dice
67faa23d83 Merge branch 'master' of dice:git/vm 2007-10-29 15:42:48 -06:00
Joel Dice
956106f518 implement StringBuilder.delete() more efficiently 2007-10-29 15:40:05 -06:00
Eric Scharff
c97b16b8bc implement a few classpath methods required by SWT for Mac OS X 2007-10-29 15:23:13 -06:00
Eric Scharff
bcd2c75f41 Implements String.delete(char oldChar, String newChar), StringBuffer and
StringBuilder delete(int startIndex, int endIndex), and
replace (int startIndex, int endIndex, String replacementString)
2007-10-29 15:07:36 -06:00
Joel Dice
78ee14fff5 Merge branch 'master' of dice:git/vm 2007-10-29 14:57:40 -06:00
Joel Dice
75d4a4ff96 implement a few classpath methods required by SWT for Win32 2007-10-29 14:57:33 -06:00
Eric Scharff
8e95590dea Added a temporary hack for logging.
if the System property rt.log.dir is set, standard logging messages are
written both to standard out and to the file log.txt inside the directory
provided.  This allows us to get debugging information quickly.
2007-10-29 12:04:26 -06:00
Joel Dice
09cedfd7cb make Boolean, Byte, Short, etc. implement Comparable 2007-10-28 18:51:08 -06:00
Joel Dice
6710ca85d7 clean up JNIEXPORT definitions 2007-10-26 18:20:37 -06:00
Joel Dice
8e1637ec6b Merge branch 'master' of dice:git/vm 2007-10-26 18:05:02 -06:00
Joel Dice
4b92017ea9 fix several win32 bugs in SocketSelector 2007-10-26 18:04:55 -06:00
Eric Scharff
789cc8e9a2 On the Mac, building in the vm object is complicated. Instead,
rely on external files.
2007-10-26 16:10:12 -06:00
Joel Dice
f354abb4a0 build fixes and refactoring 2007-10-26 15:02:39 -06:00
Joel Dice
e892f1bff5 refactor System.getProperty() to reduce coupling with native code 2007-10-26 12:13:21 -06:00
Joel Dice
ccdc7fdda3 eliminate bin2c and use objcopy instead to translate binary data to an object file 2007-10-26 11:38:36 -06:00
Eric Scharff
25275933ce Print line numbers correctly for native and unknown source 2007-10-25 17:57:56 -06:00
Eric Scharff
a81b77a37e fixes i2f i2d implementation. Fixes image drawing bugs on Mac OS X.
Also fixes a crash caused by implementing StringBuffer.toString(float)
2007-10-25 14:26:51 -06:00
Joel Dice
b12b779c7f add support for passing properties to the VM via JNI; use vm.builtins property to specify builtin libraries 2007-10-25 12:33:43 -06:00
Joel Dice
c694b8c7e6 fix unix build breakage 2007-10-24 15:03:59 -06:00
Joel Dice
eaf1d205cd more windows port fixes 2007-10-24 11:24:19 -06:00
Joel Dice
5bfd90cfed more system-specific tweaks for windows port 2007-10-24 10:24:02 -06:00
Joel Dice
ea6f67a7c7 tweak os-specific system properties 2007-10-24 09:44:51 -06:00
Joel Dice
e145d09523 fix posix build breakage 2007-10-23 17:22:42 -06:00
Joel Dice
1381267e70 mork work on the windows port 2007-10-23 11:22:48 -06:00
Eric Scharff
52bc20ace2 Optimized calendar implementation. Year can now be computed with arithmetic,
not a loop to find the current year.
2007-10-22 15:53:46 -06:00
Eric Scharff
7eb08c5fc4 If a Calendar changes values, update the (cached) fields. 2007-10-22 12:23:56 -06:00
Eric Scharff
8902cf2a73 Added a working implementation of calendar that fills in the important
fields (year, month, day, hour, minute, second) for the Gregorian calendar.
Specifically, it fills in YEAR, MONTH, DAY_OF_MONTH, HOUR_OF_DAY, MINUTE,
and SECOND.
2007-10-22 12:03:15 -06:00
Joel Dice
f84b865f03 implement TreeSet.toString() 2007-10-16 19:17:37 -06:00
Eric Scharff
6be84b4653 Adds some missing methods to TreeSet, which really ought to be an instance of Collection 2007-10-16 12:14:03 -06:00
Eric Scharff
91ffeb6aed Signature of removeElementAt() was not correct, fixes exception in SWT 2007-10-15 14:06:06 -06:00
Joel Dice
64313aa243 fix return value of HashMap.put() 2007-10-13 15:46:20 -06:00
Eric Scharff
a9bbaff74f Added Math.ceil() and Math.sin() 2007-10-12 12:53:56 -06:00
Eric Scharff
79ad3bdb76 Exception thrown by ByteBuffer 2007-10-11 17:04:45 -06:00
Eric Scharff
15d1fe8b75 Fix hashmap insertion bug (entire bucket was getting erased in some put() operations) 2007-10-11 17:03:51 -06:00
Eric Scharff
32946417b7 Fixed subtle bug in getLong() 2007-10-11 16:42:33 -06:00
Eric Scharff
3fbe5b9a01 Add Math.pow() and Math.sqrt() native peers 2007-10-11 16:41:52 -06:00
Eric Scharff
9d3027540b Add meaningful toString() methods 2007-10-11 16:41:07 -06:00
Eric Scharff
00cfa587bc Various bug fixes and optimizations 2007-10-11 15:41:23 -06:00
Eric Scharff
75c51bb5ec Added user.home system property 2007-10-11 15:39:21 -06:00
Eric Scharff
db2b7e8fa7 Semantics of getChars was incorrect. It should specify a begin
and end index, not a bunch of lengths
2007-10-11 10:00:35 -06:00
Eric Scharff
e831a41e90 Implemented ByteBuffer.clear() 2007-10-11 09:59:52 -06:00
Eric Scharff
b59d234b16 Math.floor() is used by SWT. Defers to the libm (or GCC builtin)
for floor
2007-10-11 09:59:22 -06:00
Eric Scharff
782081d1ff Use custom initialization scheme to allow the java-nio library to be linked without
the stdc++ library, using a custom operator new
2007-10-08 13:05:56 -06:00
Eric Scharff
9368dd2acc Fix another off-by-one error when EOS is hit on the socket 2007-10-07 11:35:48 -06:00
Eric Scharff
35a96a0d36 Fix an off-by-one error when EOS is hit on the socket 2007-10-07 09:53:07 -06:00
Eric Scharff
19b6e11cbc Make sure to report EOF when reading from a socket channel 2007-10-05 15:51:06 -06:00
Eric Scharff
98269286e5 Implemented a basic NIO socket channel interface. Non-blocking socket channels
and server socket channels are implemented.  This version works but only when
libnative is linked with g++ (because of C++ object creation code that fails
without this linking)
2007-10-05 15:32:56 -06:00
Joel Dice
e32a335079 Merge branch 'master' of dice:git/vm
Conflicts:

	src/cdecl.S
2007-10-04 17:17:57 -06:00
Eric Scharff
8b607d4aa4 FileInputStream read() should return an unsigned byte 2007-10-04 13:57:39 -06:00
Joel Dice
404d996c1e snapshot 2007-10-03 18:41:54 -06:00
Eric Scharff
7bc85a1247 Implemented printing of doubles using snprintf 2007-10-02 09:23:49 -06:00
Eric Scharff
243d62a952 non-working implementation of float and double.toString() 2007-10-02 08:58:35 -06:00
Joel Dice
8ae36c05b7 lots of new instructions and bugfixes 2007-09-29 20:48:27 -06:00
Eric Scharff
da6dd8fba3 Fix ByteBuffer bugs 2007-09-28 13:18:28 -06:00
Eric Scharff
bcd5f5b94b Fixed bulk put offset for sliced arrays 2007-09-28 12:19:13 -06:00
Eric Scharff
cc8dd6d8c0 Implemented ByteBuffer.flip() 2007-09-28 12:18:01 -06:00
Eric Scharff
b4afc538d4 (Hopefully correct) implementation of ByteBuffer 2007-09-28 12:16:25 -06:00
Eric Scharff
43a2cb7cc5 Tie up some loose ends, implementing methods that are useful but not yet implemented. 2007-09-28 11:38:58 -06:00
Eric Scharff
5691ec87f0 Added a proper implementation of TreeSet, based on a Persistent set implementation. 2007-09-28 11:01:57 -06:00
Eric Scharff
8a4d3effe0 Make String.compare() match the Java specification 2007-09-28 11:00:31 -06:00
Eric Scharff
3fb90d4c3a Added minimalist TreeSet implementation, as well as Test classes for trees
and lists.
2007-09-27 16:23:05 -06:00
Eric Scharff
0efc498837 Another place where printing null should be permitted 2007-09-27 15:21:39 -06:00
Eric Scharff
2ae6aa7ddf Fix System.arraycopy when the source and dest are the same 2007-09-27 15:06:56 -06:00
Eric Scharff
101b0c3b0e Support printing of null references 2007-09-27 15:05:55 -06:00
Eric Scharff
9621679d2a Cosmetic tweaks to the default logger 2007-09-27 12:43:20 -06:00
Eric Scharff
26de9c334d Add a default logging handler, in case the user doesn't provide any. 2007-09-27 12:42:06 -06:00
Joel Dice
554dd76495 Merge branch 'master' of dice:git/vm 2007-09-26 17:23:14 -06:00
Joel Dice
2f3f97d550 clean up compile.cpp and support both x86_64 and i386; further refactoring to support JIT 2007-09-26 17:23:03 -06:00
Eric Scharff
bb4a7c21c7 Implemented a simple but working implementation of the java logging API,
complete with a test class
2007-09-26 14:46:21 -06:00
Eric Scharff
a88f7c8473 Implemented proper enum toString() behavior and an enum test. it should
work, but it fails with the current build.
2007-09-26 12:59:18 -06:00
Eric Scharff
c7567b4081 Fixed typo 2007-09-26 11:45:44 -06:00
Eric Scharff
ea307cfdf8 Merge branch 'master' of dice.ecovate.com:/home/dicej/git/vm 2007-09-26 11:40:14 -06:00
Eric Scharff
c174ce34b6 Added several useful classes 2007-09-26 11:27:09 -06:00
Eric Scharff
bd6f2913c5 Runtime should implement IOException 2007-09-26 11:22:23 -06:00
Eric Scharff
4d3fd38d54 List now implements various forms of add() 2007-09-26 10:32:39 -06:00
Eric Scharff
219e381def Added Long.valueOf(String) 2007-09-26 10:32:02 -06:00
Eric Scharff
0f926f8f0b Added ArrayList.set 2007-09-26 10:02:58 -06:00
Eric Scharff
7d67d09b1a Added inflate method and stub method for reset() 2007-09-26 09:53:30 -06:00
Eric Scharff
0beba6cafa ArrayList now implements ListIterator (for reverse traversals of lists) 2007-09-26 09:48:59 -06:00
Eric Scharff
09efe501f5 Added TODO 2007-09-26 09:48:36 -06:00
Eric Scharff
8c248e382f Added methods to get and set properties, and stub method to save them 2007-09-26 09:48:21 -06:00
Eric Scharff
cacb5a6f1e Stub method for Math.random() 2007-09-26 09:47:25 -06:00
Eric Scharff
d06d1726c4 Added MAX_VALUE 2007-09-26 09:46:38 -06:00
Eric Scharff
876b02f641 Added method addAll to interface Map 2007-09-26 09:19:21 -06:00
Eric Scharff
b02b98609e Added methods isEmpty(), putAll(), toArray() to interfaces List and Map 2007-09-26 08:57:34 -06:00
Eric Scharff
4ae4221701 Integer should implement Comparable<Integer> 2007-09-26 08:44:56 -06:00
Joel Dice
1207989f72 fix build and runtime bugs introduced in last commit 2007-09-26 08:43:40 -06:00
Eric Scharff
2e813cff18 Added Calendar.setTime(), even though it does not work 2007-09-26 08:43:01 -06:00
Joel Dice
65a3ee4277 superficial tweaks 2007-09-21 08:16:43 -06:00
Eric Scharff
36f1d3206e The proper extension for Mac JNI libraries is .jnilib. Hard-coded constants
have been factored to common locations.  Furthermore, the LD_LIBRARY_PATH
environment variable is DYLD_LIBRARY_PATH on Mac OS X.
2007-09-20 10:13:41 -06:00
Eric Scharff
f430f3f00e Various fixes (mostly making things more strict) to get the code to
compile on Mac OS X
2007-09-19 10:22:19 -06:00
Joel Dice
86999df5f2 factor Properties and PropertieResourceBundle out of ResourceBundle 2007-09-17 16:16:57 -06:00
Joel Dice
923c4661e8 implement Inflater and InflaterInputStream 2007-09-17 16:15:16 -06:00
Joel Dice
07102aefad System.setProperty() should return the previous value of the property, if any 2007-09-17 08:10:27 -06:00
Joel Dice
4ade402f1b bugfixes; SWT ControlExample works on x86_32 2007-09-14 14:35:37 -06:00
Joel Dice
bb520e4ef9 bugfixes 2007-09-13 21:59:39 -06:00
Joel Dice
2ca75d50e6 implement a few more classpath methods 2007-09-13 21:12:51 -06:00
Joel Dice
5e42158f4b add misc methods to classpath 2007-09-13 20:19:44 -06:00
Joel Dice
7cb3a30a91 sketch of Runtime.exec() and Calendar; misc bugfixes 2007-09-12 18:21:37 -06:00
Joel Dice
182414c6e0 sketch out ResourceBundle 2007-09-11 20:56:02 -06:00
Joel Dice
cb03240c64 quick sketches of various SWT 3.3 dependencies 2007-09-11 19:13:05 -06:00
Joel Dice
a4b4f36c5b various classpath updates to help SWT build 2007-08-30 17:31:32 -06:00
Joel Dice
8b102783a6 implement File.getParent() 2007-08-28 17:39:21 -06:00
Joel Dice
b8de552797 re-implement System.getProperty to separate vm-specific properties from others 2007-08-27 07:46:17 -06:00
Joel Dice
493667a6cc handle negative numbers in Long.parseLong() and improve error detection 2007-08-23 20:35:27 -06:00
Joel Dice
dd17a27485 support os.name in System.getProperty 2007-08-23 19:58:10 -06:00
Joel Dice
d1dbb45d55 implement Arrays.toString() 2007-08-23 19:57:42 -06:00
Joel Dice
8377016b0f StringTokenizer bugfixes 2007-08-23 18:21:56 -06:00
Joel Dice
e9cafcad37 add StringBuilder.append(boolean) 2007-08-23 18:20:42 -06:00
Joel Dice
38e2abb818 specify class name when throwing CloneNotSupportedException 2007-08-22 21:22:44 -06:00
Joel Dice
f907d9e08f implement StringTokenizer 2007-08-22 21:22:16 -06:00
Joel Dice
3526fbfcb7 initial sketch of java/util/StringTokenizer 2007-08-22 20:25:08 -06:00
Joel Dice
84028e7f51 fix reversed logic in LinkedList.addFirst()/addLast() 2007-08-21 22:01:37 -06:00
Joel Dice
a68505ff48 implement Hashtable.toString() (defer to HashMap) 2007-08-21 22:00:46 -06:00
Joel Dice
27c8511c5e bugfixes 2007-08-20 18:24:54 -06:00
Joel Dice
e2f3e80bdf heap o' bugfixes 2007-08-19 20:57:32 -06:00
Joel Dice
7a340fd8fb bugfixes 2007-08-19 14:24:26 -06:00
Joel Dice
59638543c7 various performance tweaks and bugfixes 2007-08-19 13:45:51 -06:00
Joel Dice
77136e77cb String.indexOf() should take an int, not a char 2007-08-18 15:22:43 -06:00
Joel Dice
aa5e751e69 clean up Array.get(), Array.set(), and Method.invoke() implementations 2007-08-18 11:53:30 -06:00
Joel Dice
d169e4eadf clean up Field.get() and Field.set() implementations 2007-08-18 11:15:03 -06:00
Joel Dice
f22dda0df1 bugfixes 2007-08-14 19:14:55 -06:00
Joel Dice
71c7013808 more bugfixes 2007-08-14 07:27:10 -06:00
Joel Dice
587dbeb163 bugfixes 2007-08-13 20:35:49 -06:00
Joel Dice
d0e519d992 bugfixes 2007-08-13 19:44:47 -06:00
Joel Dice
ab3ca38580 various bugfixes 2007-08-13 18:37:00 -06:00
Joel Dice
c20219df19 flesh out serialization/deserialization code and fix build 2007-08-12 18:50:25 -06:00
Joel Dice
92ba1880d8 sketch of serialization/deserialization code (broken) 2007-08-12 15:01:47 -06:00
Joel Dice
d3931b4853 flesh out resource URL scheme implementation 2007-08-10 17:45:47 -06:00
Joel Dice
2e9b9fe8d4 flesh out URL and friends 2007-08-02 19:49:32 -06:00
Joel Dice
1997ea6b8c acquire class lock before running static initializer; wrap exceptions thrown from static initializers in ExceptionInInitializerError instances 2007-08-01 17:48:36 -06:00
Joel Dice
6ddb8c839c check identities in String.equals(), etc. 2007-08-01 17:46:05 -06:00
Joel Dice
b56eed68be implement Thread.[get|set]ContextClassloader() 2007-07-31 18:08:20 -06:00
Joel Dice
38d4ee6e07 flesh out ClassLoader, etc. 2007-07-30 17:19:05 -06:00
Joel Dice
da692a539f inherit thread locals at thread creation time, not start time 2007-07-29 19:27:42 -06:00
Joel Dice
5e336544f5 classpath progress 2007-07-29 17:38:35 -06:00
Joel Dice
a2bd7d0668 GC stress fixes and other bugfixes; classpath progress 2007-07-29 17:32:23 -06:00
Joel Dice
51943427ad classpath progress 2007-07-28 20:15:45 -06:00
Joel Dice
a9e10d1c7f more classpath progress 2007-07-28 19:29:01 -06:00
Joel Dice
c96a4a5b39 implement String.intern() 2007-07-28 18:02:32 -06:00
Joel Dice
0e373727a2 implement Thread.interrupt() 2007-07-28 15:28:25 -06:00
Joel Dice
abd9c2bc8d fix primitive class resolution to avoid mistaking normal classes with names like 'B' for primitive classes 2007-07-28 10:55:24 -06:00
Joel Dice
41bee5829e misc. bugfixes and tweaks 2007-07-28 10:10:13 -06:00
Joel Dice
363801af1c classpath progress 2007-07-27 17:56:19 -06:00
Joel Dice
c9f9b039e6 classpath progress 2007-07-26 20:39:53 -06:00
Joel Dice
7212ba1c30 java/io bugfixes and coverage; jni bugfixes; minor refactoring 2007-07-26 18:06:05 -06:00
Joel Dice
9ab88ef619 a static jni method takes the jclass for that method as its second argument; simplify pad() and divide(), and rename divide() to ceiling(); sketch FileInputStream.cpp and FileOutputStream.cpp 2007-07-25 18:48:28 -06:00
Joel Dice
97aaa419b4 quick sketch of java/io/* 2007-07-24 18:34:45 -06:00
Joel Dice
527f46d53d bugfixes; add NullPointerException.java 2007-07-23 21:31:28 -06:00
Joel Dice
823d764998 working reflection 2007-07-23 21:16:59 -06:00
Joel Dice
5f3bf175e0 start work on reflection; bugfixes 2007-07-23 19:44:20 -06:00
Joel Dice
472ecb1713 flesh out some classpath classes 2007-07-22 13:06:21 -06:00
Joel Dice
ecd31a10a4 fun with collections 2007-07-21 21:47:29 -06:00
Joel Dice
da17490206 fun with collections 2007-07-21 21:47:08 -06:00
Joel Dice
90d60b3459 more classpath classes 2007-07-21 16:36:51 -06:00
Joel Dice
fd770fd884 sketch a few more classpath classes 2007-07-21 14:44:39 -06:00
Joel Dice
48226f988c add a bunch of classes to classpath and flesh out a few existing ones 2007-07-21 11:50:26 -06:00
Joel Dice
de9213ce30 finish java/lang/ref/* support; add wrapper classes for primitives 2007-07-19 21:18:25 -06:00
Joel Dice
faf9b63798 more work on java/lang/ref/* support 2007-07-19 19:07:30 -06:00
Joel Dice
b213ec0ef8 sketch of java/lang/ref/* 2007-07-19 18:18:47 -06:00
Joel Dice
4670055b03 implement primitive testing framework and provide for GC stress testing 2007-07-15 19:03:02 -06:00
Joel Dice
3121002ffd implement Throwable.resolveTrace(); bugfixes 2007-07-14 12:37:04 -06:00
Joel Dice
2df8a60a78 support object arrays of various element types and dimensions; clean up weak hash map support 2007-07-14 11:31:01 -06:00
Joel Dice
0099aa396b make builtin class type a bootstrap version of java/lang/Class 2007-07-12 17:46:08 -06:00
Joel Dice
01d858e1bc more bugfixes, mainly monitor-related 2007-07-10 22:19:26 -06:00
Joel Dice
93748f2df9 heap o' bugfixes 2007-07-10 19:38:06 -06:00
Joel Dice
a77693fb29 snapshot; known bug: finalizers and weak references don't work correctly wrt tenured objects 2007-07-07 19:06:32 -06:00
Joel Dice
f71c77298c bugfixes 2007-07-07 17:47:35 -06:00
Joel Dice
e5bea7a455 progress on thread support 2007-07-07 12:09:16 -06:00
Joel Dice
c3320c2c97 flesh out classpath enough to test threading; fix indexing bug in parsePool() 2007-07-04 16:27:08 -06:00
Joel Dice
d3735e9e58 add TestThreads.java 2007-07-01 22:04:03 -06:00
Joel Dice
bb16d8e62b snapshot (broken) 2007-07-01 19:42:35 -06:00
Joel Dice
38cea04322 progress towards thread support
This includes support for using the least significant bits of the class
pointer to indicate object state, which we'll use to indicate the
presence of a monitor pointer, among other things.
2007-07-01 15:34:22 -06:00
Joel Dice
b33f0c311d push method frame for native invocations (so we'll see them in stack traces) 2007-06-29 20:41:49 -06:00
Joel Dice
b8e009075c stack trace work 2007-06-29 20:39:01 -06:00
Joel Dice
c34ee64988 classloading bugfixes and stack trace work 2007-06-29 19:37:45 -06:00
Joel Dice
e529d60a69 hello, world 2007-06-29 10:42:39 -06:00
Joel Dice
400b3633d7 more JNI work 2007-06-24 19:34:07 -06:00