Граф коммитов

82 Коммитов

Автор SHA1 Сообщение Дата
Andreas Gal a7d87bcfb3 fix notifyAll 2014-07-29 02:08:04 -07:00
Andreas Gal ffd8626cd3 common out code to unblock a thread 2014-07-29 01:07:15 -07:00
Andreas Gal d7a1f4302d make code run better in chrome 2014-07-28 19:13:32 -07:00
Andreas Gal 1f14601f29 add yield() 2014-07-28 15:19:07 -07:00
Andreas Gal 661777f211 add notify and notifyAll 2014-07-28 12:44:40 -07:00
Andreas Gal eb7b9eec14 improve locking of class initialization 2014-07-28 12:42:42 -07:00
Andreas Gal ae2426c4c0 a couple assorted fixes for threading 2014-07-28 00:53:37 -07:00
Andreas Gal 2f4d32f420 implement threading better 2014-07-27 23:39:41 -07:00
Andreas Gal 29c84a4c15 fix order of static class initialization 2014-07-27 20:30:10 -07:00
Andreas Gal 21359dfc2d add a few missing unchecked arraycopy natives 2014-07-27 20:22:33 -07:00
Andreas Gal 2a08d3b8ea add ClassTest.java and hashCode() 2014-07-26 18:47:38 -07:00
Andreas Gal bde88bd000 add and fix vm for ClassTest.java 2014-07-26 18:20:54 -07:00
Andreas Gal c79379d73b fix array copy with object element type 2014-07-26 17:39:49 -07:00
Andreas Gal ad400b894b add a bunch of math tests 2014-07-26 15:00:19 -07:00
Andreas Gal d394243a8a better locking for class intialization 2014-07-26 11:42:02 -07:00
Andreas Gal 600324794d assorted fixes to make TestThread work 2014-07-25 17:54:34 -07:00
Andreas Gal a903846238 make interpreter fully preemptive 2014-07-25 15:24:14 -07:00
Andreas Gal c761251cbc make all tests pass again 2014-07-25 15:06:21 -07:00
Andreas Gal 2b48b809b0 pop this in Runtime native methods 2014-07-25 13:42:44 -07:00
Andreas Gal 8da1a82cd1 fix a few native methods 2014-07-25 13:28:26 -07:00
Andreas Gal a976bfe339 fix synthetic method code 2014-07-25 13:23:10 -07:00
Andreas Gal 72f91a6a1a big refactoring to eliminate nested interpreter loops 2014-07-25 13:06:48 -07:00
Andreas Gal 5f1e87b04a remove callback pattern 2014-07-24 00:21:59 -07:00
Andreas Gal 697d6f14d3 move initClass to frame 2014-07-21 02:04:14 -07:00
Andreas Gal 3ffc368260 move newException onto frame 2014-07-21 02:01:06 -07:00
Andreas Gal f4c46b933d move invokeConstructor and newString onto frame 2014-07-21 01:50:36 -07:00
Andreas Gal 2ce801b4a8 use bind instead of closures 2014-07-21 00:30:37 -07:00
Andreas Gal db8f263702 support for actual multithreading 2014-07-20 22:24:07 -07:00
Andreas Gal c73674f64c move native method lookup code up 2014-07-20 22:08:08 -07:00
Andreas Gal d371434057 cleanup native method dispatch 2014-07-20 21:32:47 -07:00
Andreas Gal f78a97eecc preload java/lang/Object 2014-07-20 17:10:12 -07:00
Andreas Gal 09859504f0 change the way natives indicate descheduling 2014-07-20 16:47:23 -07:00
Andreas Gal 6109859fc7 implement rescheduling requests from within natives 2014-07-20 16:41:30 -07:00
Andreas Gal 599739cea6 make sure threads can't be started multiple times 2014-07-20 16:28:26 -07:00
Andreas Gal 23557e71ee add support for starting new threads 2014-07-20 16:27:24 -07:00
Andreas Gal 2b24ecf72c create exceptions on the current thread, not the main thread 2014-07-20 15:46:22 -07:00
Andreas Gal c53c68007a note current thread in frame in invoke path 2014-07-20 15:42:23 -07:00
Andreas Gal 8008918b51 move newException to classes from vm 2014-07-20 15:35:48 -07:00
Andreas Gal 18724d85c0 initialize main thread during startup 2014-07-20 00:35:00 -07:00
Andreas Gal a585efe82e don't bind this to the caller frame in natives 2014-07-19 17:34:43 -07:00
Andreas Gal 8a2bdec2b2 inline getNativeMethod 2014-07-19 17:33:14 -07:00
Andreas Gal e1c685dba4 fix a bunch of corner cases around array type checking 2014-07-19 13:18:45 -07:00
Andreas Gal 76801f1c66 throw proper internal exception when class can't be loaded and use native character conversion instead of CLDC's 2014-07-19 11:53:27 -07:00
Andreas Gal 1dfef4cba4 more work on strings and charsets 2014-07-19 11:20:46 -07:00
Andreas Gal 2634b8499f add another test 2014-07-19 09:23:14 -07:00
Andreas Gal 8fb2523d6b switch default encoding to UTF-8 to fix a few test failures 2014-07-19 09:13:10 -07:00
Andreas Gal de7bc07375 fix lsub 2014-07-19 00:02:20 -07:00
Andreas Gal f90bca8af5 add a way to print backtraces and fix ifnull/ifnonnull 2014-07-18 23:24:26 -07:00
Andreas Gal 805adcfeef call the constructor from newInstance 2014-07-18 21:56:30 -07:00
Andreas Gal 5bcefb1f6c fix a test case 2014-07-18 18:33:12 -07:00