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

154 Коммитов

Автор SHA1 Сообщение Дата
jfrijters 1ece25e884 Updated java.lang.Throwable to OpenJDK 7. 2011-06-26 06:32:47 +00:00
jfrijters f6d368e121 Updated java.lang.Enum to OpenJDK 7. 2011-06-19 12:14:33 +00:00
jfrijters 7ef52f688b Updated to OpenJDK 7:
- java.lang.Class
- java.security.AccessController
- sun.reflect.ReflectionFactory
2011-06-19 12:04:11 +00:00
jfrijters f8f4676278 - Updated java.lang.Thread to OpenJDK 7
Switched to 7:
- java.lang.ThreadGroup
2011-06-19 11:11:31 +00:00
jfrijters 7a1aa6db70 - Updated java.lang.ClassLoader to OpenJDK 7 (minus PerfCounter and parallel class loading support)
Switched to 7:
- java.util.Collections
- sun.misc.ClassFileTransformer
- sun.misc.Launcher

Added from 7:
- java.lang.SafeVargs
2011-06-19 10:49:00 +00:00
jfrijters c5c44a8a64 Unforked java.lang.ApplicationShutdownHooks and updated to OpenJDK 7 version. 2011-06-19 10:02:30 +00:00
jfrijters f5c6a874a0 Use some map.xml magic to create a no-op constructor that will allow the number of source differences to be reduced while maintaining the optimized nature of the DUMMY instance. 2011-06-17 14:46:35 +00:00
jfrijters 71230ea465 Partially updated to OpenJDK 7. 2011-06-17 13:27:30 +00:00
jfrijters 67d11a210b Partially updated to OpenJDK 7. 2011-06-17 12:32:06 +00:00
jfrijters 5d07ae3795 Updated sun.misc.VM to OpenJDK 7. 2011-06-17 11:33:05 +00:00
jfrijters e360c88f10 Updated to OpenJDK 7. 2011-06-17 10:16:57 +00:00
jfrijters 9be6d7f1ad Added experimental (and for the time being undocumented) support for having ikvmc pre-generate proxy classes. 2011-05-12 08:08:08 +00:00
jfrijters 45760b34dd Prepare java.lang.reflect.Proxy for forking. 2011-05-12 07:44:28 +00:00
jfrijters bc2c6b1a72 Integrated OpenJDK 6 b21. 2011-01-24 16:40:22 +00:00
jfrijters 1874857e15 Removed VMThread class which only existed as a container for the jniDetach method. 2010-12-28 08:42:10 +00:00
smallsql f8c4f6517a set the system property java.content.handler.pkgs to sun.net.www.content. This is used from URLConnection.getContent(). 2010-12-27 10:24:20 +00:00
jfrijters 627ab3bfa4 System.mapLibraryName() should throw NPE for null arg. 2010-12-08 08:20:01 +00:00
jfrijters eaa2713881 Use safe version of ThreadPool.QueueUserWorkItem(). 2010-12-01 06:50:32 +00:00
jfrijters a45dda802e - Restructured threadProc() to allow try/finally block to be recognized by code generator and thus allow the finally block to run without asynchronous exceptions.
- Hacked wakeupJoinedThreads() to avoid deadlocks by deferring notification (by scheduling a thread pool task) if the lock cannot be obtained.
2010-11-30 07:58:35 +00:00
jfrijters 0ea53c4cbb Remove implementation specific methods from top of stack trace for threads started from Java. 2010-11-24 06:38:14 +00:00
jfrijters d2b95f4aba The full Thread parent hierarchy should be considered when capturing the stack. 2010-11-23 09:39:49 +00:00
jfrijters b6940c7dfb Made Thread constructor stack capture more lazy. 2010-11-23 07:30:30 +00:00
jfrijters 1eeadb5333 - Replaced reflection based implementation of isCCLOverridden() with an MSIL version that directly compares the method pointers.
- Always use isCCLOverridden() to determine if we need to call parent.getContextClassLoader(), this avoids resolving ClassLoader.DUMMY when we're creating a new thread.
2010-11-20 07:41:00 +00:00
jfrijters 5a3a196d92 Avoid security manager check for assembly class loaders. The runtime should be priviliged to create the default assembly class loader and a custom security manager might recursively require the assembly class loader to be loaded (which is only "supported" for custom assembly class loaders). 2010-11-03 07:55:11 +00:00
jfrijters 51997be230 Thread should synchronize on private lock instead of Thread object in thread startup code, to avoid deadlock with user code. 2010-09-09 06:35:55 +00:00
jfrijters 9d1bb56831 When class GC is enabled, we shouldn't keep a strong reference to Class instances. 2010-08-23 13:02:26 +00:00
jfrijters 4062e32cd6 Set system property "sun.boot.class.path" to point to the /classes/ directory of IKVM.OpenJDK.Core.dll 2010-08-19 09:26:20 +00:00
jfrijters 4140a2c52b - Split objectWait into two. One for the nanos variant and one that does the actual waiting.
- Fixed edge case where timeout == Long.MAX_VALUE and nanos >= 500000 that should cause IllegalArgumentException (to be compatible with the JDK, although that is arguably a JDK bug).
- Fixed exception when timeout > Integer.MAX_VALUE. Thanks to Andy Malakov for reporting this.
2010-08-09 12:27:39 +00:00
jfrijters 50538d31a1 Process.destroy() could throw System.ComponentModel.Win32Exception, swallow that exception instead. 2010-08-03 12:37:47 +00:00
jfrijters d18d00788b Moved ExceptionHelper.getStackTrace() to "native" code of Thread. 2010-05-27 11:47:41 +00:00
jfrijters e904756592 Changed ikvm.runtime.Startup.setProperties() to take an IDictionary instead of Hashtable. This allows a Dictionary<string, string> to be passed in now and avoids future problems if/when we want to target Silverlight (which doesn't have System.Collections.Hashtable). 2010-04-21 06:51:18 +00:00
jfrijters 562b15ceb2 Prep for .NET 4.0 security model:
- serialization methods must be critical.
2010-04-12 04:17:39 +00:00
jfrijters 0a5c0d2e57 Don't allow unitialized class loader to be used as parent. 2010-02-26 13:30:44 +00:00
jfrijters 9ddff837c5 - Moved thread dump code from Thread.java to openjdk.cs.
- Changed thread dump code to write to System.Console.Out, instead of java.lang.System.out.
- Changed formatting slightly and added some info to make it more like the JDK output.
2010-02-04 05:08:55 +00:00
smallsql 28b2619037 Move init of CTRL-BREAK from System to Startup. It should be init if a Java application run and not if a library is linked. 2010-01-31 14:08:26 +00:00
smallsql ab38ca8fa7 Change the method dumpAllStacks() from hide to internal 2010-01-31 13:13:30 +00:00
smallsql 071cda53f0 Register the default signal handler for BREAK 2010-01-30 15:50:35 +00:00
smallsql 9902d81941 Add a method for dumping all stacktraces to the console. 2010-01-30 15:49:05 +00:00
smallsql 2966abd1dc Thread.getAllStackTraces() has ever suspend all Threads 2010-01-16 20:33:54 +00:00
smallsql e28519682e set system property java.awt.printerjob 2009-10-27 19:07:24 +00:00
jfrijters db9c796794 Removed vestigial compact framework support. 2009-08-28 06:47:16 +00:00
jfrijters 43fd0daf07 Implemented support for .NET serialization of Java enums.
(The CreateEnumEnum move in FakeTypes.cs is because java.lang.Enum now has a dependency on custom attribute annotations.)
2009-07-29 09:36:56 +00:00
jfrijters 03892b621b Prepare for forking java/lang/Enum.java. 2009-07-29 08:35:42 +00:00
jfrijters 2c2388d152 Implemented .NET serialization support for java.lang.Class objects. 2009-07-29 07:04:42 +00:00
jfrijters 45a57e8ec5 Moved most java.lang.Class changes from map.xml to java source. 2009-07-28 13:01:25 +00:00
jfrijters 6e61c1475d Changes to make <clinit> trivial. 2009-07-16 06:15:08 +00:00
jfrijters 2e1ccef008 Removed unneeded initialization of static fields. 2009-07-14 07:58:39 +00:00
jfrijters 64e5615aaa Moved responsibility for creating java.lang.Class instances for "fast literal" enable types into ClassLiteral<T>, this allows class literals to be really cheap, because non of the underlying reflection is needed, the class will cache the Type and lazily resolve it to its TypeWrapper. 2009-07-14 06:27:41 +00:00
jfrijters 2f2e69613c - Set runtime version during build, instead of computing it a runtime.
- Set OpenJDK version in openjdk.build instead of VMSystemProperty source.
2009-07-03 06:57:06 +00:00
jfrijters 0e0dd9b037 - Consolidated system property initialization in VMSystemProperties.
- Fixed bug that caused startup properties set with ikvm.runtime.Startup.setProperties() to be forgotten when doing a System.setProperties(null).
2009-07-03 06:40:51 +00:00
jfrijters 049ea653fe Moved startup system properties temporary cache from VMSystemProperties to Startup to allow VMSystemProperties to be private instead of internal. 2009-07-03 06:22:10 +00:00
jfrijters e45016df54 Moved gnu.classpath.Configuration to java.lang.PropertyConstants. 2009-07-03 06:09:49 +00:00
jfrijters 7a856abc0a Moved VMSystemProperties from gnu.classpath to java.lang. 2009-07-03 05:55:58 +00:00
jfrijters 82fb3d2682 Removed GNU Classpath related stuff. 2009-07-03 05:28:19 +00:00
jfrijters 1d2cfde35f Updated to OpenJDK 6 b16 2009-04-16 10:12:34 +00:00
jfrijters b54fbae544 Removed unnecessary field initialization and registerNative call. 2009-02-27 05:53:27 +00:00
jfrijters 423cf661b2 Don't overwrite the thread context class loader if it has already been set when sun.misc.Launcher initializes. 2009-02-19 06:47:29 +00:00
jfrijters 070d268277 Added supported for redirecting Runtime.exec("java ...") to ikvm.exe. 2009-02-10 15:21:41 +00:00
jfrijters e62914f4a1 - Made java.lang.ClassLoader.loadClassInternal() accessible.
- Call ClassLoader.loadClassInternal() instead of ClassLoader.loadClass() to lock class loader object.
2008-11-18 05:25:06 +00:00
jfrijters 3bbce96961 Updated OpenJDK version property to b12. 2008-09-16 07:01:28 +00:00
jfrijters 2381194072 Removed the usage of .NET reflection. 2008-09-01 05:19:04 +00:00
jfrijters f0ec6a7e0d Integrated OpenJDK 6 b10. 2008-06-13 09:00:47 +00:00
jfrijters 3b99a2e11c Merged OpenJDK 6 b10 whitespace and comment changes. 2008-06-12 09:09:11 +00:00
jfrijters 9baab31e8c Converted tabs to spaces. 2008-06-11 09:04:56 +00:00
jfrijters 909d78b0f7 - Renamed ClassLoader.NIL_CLASSLOADER to ClassLoader.DUMMY.
- Removed unused ClassLoader.registerNatives().
- Removed unnecessary field initializers in ClassLoader.
- Moved necessary field initializers in ClassLoader to constructor.
- Changed Thread to make use of ClassLoader.DUMMY, instead of having an extra field to keep track of contextClassLoader status.
2008-06-04 05:12:46 +00:00
jfrijters 5e4182edb5 - Implemented CallerID infrastructure.
- Marked various methods with HasCallerID annotation.
- Rewrote some methods to explicitly use CallerID.
2008-05-31 15:20:29 +00:00
jfrijters 63b649e6c1 Implemented support for specifying Thread stack size. 2008-04-25 05:17:54 +00:00
jfrijters 1b027efce3 Moved java.lang.Thread "native" methods to Java. 2008-04-25 04:48:57 +00:00
jfrijters ec2228d04a Moved System.nanoTime() to Java. 2008-04-24 06:22:49 +00:00
jfrijters 7d472777de Moved a couple of java.lang.System native methods to the Java side. 2008-04-23 05:24:35 +00:00
jfrijters effbc3bb80 Removed method that is no longer needed. 2008-04-23 04:25:48 +00:00
jfrijters cd2ab36b74 Refactored class library initialization. 2008-04-23 04:25:21 +00:00
jfrijters a8b70ae1d8 Forked java/lang/ApplicationShutdownHooks.java. 2008-04-21 04:38:12 +00:00
jfrijters 134f509f1f Implemented System.in/out/err as .NET properties (explicitly). 2008-04-14 05:14:53 +00:00
jfrijters 2211f9da06 Forked OpenJDK sources that are going to be modified to refactor the library initialization. 2008-03-30 06:59:09 +00:00
jfrijters c591de8029 Ripped out annotation/constant pool support that is no longer needed. 2008-03-03 08:28:22 +00:00
jfrijters 68e4e912ab - Simplified annotation handling.
- Added support to Class.forName() for assembly qualified Java type names.
2008-02-29 08:03:09 +00:00
jfrijters 95ce4405cd - Forked Class, Constructor and Field.
- Made class annotation handling lazy and bypass encode/decode.
2008-02-19 16:52:53 +00:00
jfrijters efdd737c54 Fixed regression introduced by previous change from GCHandle to WeakReference. 2007-12-31 12:29:12 +00:00
jfrijters 1229097f11 Replaced GCHandle with WeakReference to support partial trust. 2007-12-28 10:18:18 +00:00
jfrijters e2c7ceb1d5 - Moved some calls to methods with a LinkDemand (that fails in partial trust) to a separate methods.
- Added stuff to map.xml to remove the need for reflection in VM / Library bootstrap.
- Inverted IKVM.Runtime.JNI dependency in stack walking code.
2007-12-27 15:16:49 +00:00
jfrijters 6cd0a9e34b Restructured VM <-> Library interface to take advantage of InternalsVisibleTo to remove public methods and reflection usage. 2007-12-19 11:28:09 +00:00
jfrijters 96094d6cee Made AssemblyClassLoader public and moved it to ikvm.runtime package. 2007-10-25 12:56:18 +00:00
jfrijters 2628d5ab4b Changed AssemblyClassLoader to be useable as a delegation parent for custom assembly class loaders. 2007-10-22 05:13:08 +00:00
jfrijters 220166a19e Changed LibraryVMInterfaceImpl.getWrapperFromClass() and getWrapperFromClassLoader() from using reflection to a map.xml implementation to improve performance.
It turns out that Constructor.newInstance() calls Class.getModifiers() which indirectly uses getWrapperFromClass() and using reflection significantly affected deserialization performance.
2007-09-19 09:35:57 +00:00
jfrijters c932cfad42 Made method annotation resolution lazy to support annotations that annotate themselves. 2007-09-10 06:16:49 +00:00
jfrijters 0f3c84ab57 Core packages aren't sealed. 2007-09-07 12:37:26 +00:00
jfrijters 9bcb318df7 New SoftReference implementation. 2007-08-29 06:21:27 +00:00
jfrijters 98f869843f Create file streams via FileDescriptor instead of going through FileChannelImpl. 2007-08-21 07:19:15 +00:00
jfrijters d5d1f1de1b - Implemented Thread.dumpThreads() and Thread.getThreads().
- Added a couple more fake native libraries to VFS.
2007-08-17 09:12:51 +00:00
jfrijters 14c840cfbd Refactored system properties initialization. 2007-08-16 14:04:59 +00:00
jfrijters 3d0a4c552a Integrated OpenJDK java.nio package. 2007-08-15 12:04:24 +00:00
jfrijters dada58f826 Removed unused code. 2007-08-14 12:08:12 +00:00
jfrijters 2f8fb156f4 New file I forgot to add. 2007-08-09 07:09:29 +00:00
jfrijters 506e7a6584 - Implemented java.util.concurrent.locks.LockSupport.
- Fixed race condition in Thread.interrupt() that could cause cli.System.Threading.ThreadInterruptedException to be thrown from interruptable waits/sleep.
2007-06-28 14:00:10 +00:00
jfrijters 43d331ea6c Integrated OpenJDK java.lang.annotation and java.lang.ref packages. 2007-06-15 06:47:52 +00:00
jfrijters 924d14e3f2 *** empty log message *** 2007-06-13 11:45:22 +00:00
jfrijters fe849ba808 Another file I forgot to add. 2007-06-13 04:44:12 +00:00
jfrijters 6994c34acc - Integrated OpenJDK's java.lang package.
- Integrated OpenJDK's java.util.regex package.
- Integrated OpenJDK's java.text.Normalizer and support classes.
- New StringHelper.java based on OpenJDK's String.java.
- More fixes to Reflection.getCallerClass()
2007-06-11 09:17:29 +00:00
jfrijters eb23eacd45 - Integrated OpenJDK's java.lang.System and friends.
- Fixed a couple of OpenJDK Thread issues.
2007-06-09 08:33:09 +00:00