jfrijters
7d472777de
Moved a couple of java.lang.System native methods to the Java side.
2008-04-23 05:24:35 +00:00
jfrijters
d23e21777f
Removed initialization hack that is no longer needed.
2008-04-23 05:21:10 +00:00
jfrijters
cd2ab36b74
Refactored class library initialization.
2008-04-23 04:25:21 +00:00
jfrijters
8ea5f8fd42
Include exception message in ClassCastException.
2008-04-22 06:47:18 +00:00
jfrijters
134f509f1f
Implemented System.in/out/err as .NET properties (explicitly).
2008-04-14 05:14:53 +00:00
jfrijters
36593f183b
Set Thread context class loader for threads started from .NET.
2008-03-14 09:17:08 +00:00
jfrijters
c591de8029
Ripped out annotation/constant pool support that is no longer needed.
2008-03-03 08:28:22 +00:00
jfrijters
828a4de95d
Replaced notion of DynamicOnly types with Fake types. Fake types are implemented as generic type instances and can have DynamicOnly methods.
2008-03-03 07:05:19 +00:00
jfrijters
21f836bf80
Made java.util.AbstractMap enumerable and added Add() method to support C# 3.0 collection initialization syntax.
2008-02-18 08:01:05 +00:00
jfrijters
742c66f30d
Added "Add" method to java.util.AbstractCollection to make some of the .NET magic work on Java collections.
2008-02-09 17:40:18 +00:00
jfrijters
6fff8e1ac0
Partial Trust fixes:
...
- Added accessor methods for "slot" to Method & Constructor.
- Implemented System.setIn0, setOut0, setErr0 in map.xml.
- Hacked sun.misc.SharedSecrets to replace Unsafe.ensureClassInitialize() with direct calls.
- Replaced java.nio.Bits.byteOrder() with simple System.BitConver.IsLittleEndian based implementation.
- Disabled DynamicMethodSupport when running in partial trust.
- Ignore SecurityException in CanonicalizePath.
- Don't trigger load of JNI assembly when "loading" a fake system library.
2007-12-28 14:55:33 +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
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
52ca831faa
Added workaround for OpenJDK bug.
2007-08-23 09:26:46 +00:00
jfrijters
caa5e544b3
- Added workaround for java.net.DatagramSocket.receive() bug.
...
- Removed unused code.
2007-08-22 11:44:06 +00:00
jfrijters
20235b06e8
Changed AtomicBoolean.value field to int to be serialization compatible with JDK.
2007-08-08 09:23:07 +00:00
jfrijters
17682f98e9
Added hack to work around bootstrap issue in java.nio.charset.spi.CharsetProvider.
2007-08-07 07:38:27 +00:00
jfrijters
619c89079f
Added support for "loading" fake native libraries from VFS and removed hack to bypass loadLibrary() call in System.initializeSystemClass().
2007-07-05 11:53:06 +00:00
jfrijters
6f0f66d444
Switched to javac compiler for building OpenJDK sources.
2007-07-04 12:20:52 +00:00
jfrijters
42d9acd333
- Imported a modified version of AbstractQueuedSynchronizer that is more efficient and doesn't use reflection & unsafe to reduce initialization order dependencies.
...
- Changed unsafe to use more efficient internal helper class to copy Field and make it accessible (this also reduces initialization order dependencies).
2007-06-29 08:48:22 +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
5ce13f3b9d
Integrated OpenJDK's java.io.FileDescriptor, FileInputStream, FileOutputStream & RandomAccessFile.
2007-06-18 09:16:19 +00:00
jfrijters
d2c9597e11
Removed NormalizerDataReader specific workaround and fixed InputStreamWrapper in a more generic way.
2007-06-15 06:47:03 +00:00
jfrijters
250e871b00
Added workaround for OpenJDK bug.
2007-06-14 06:42:23 +00:00
jfrijters
8d84b3d0cd
Implemented the hooks to set the system class loader to the entry assembly's class loader if java.class.path and java.ext.dirs properties aren't set.
2007-06-12 12:54:20 +00:00
jfrijters
470c7ab6d6
Replaced zip library loading hack with new method call replacement hack.
2007-06-12 11:47:11 +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
jfrijters
0f1840aa0d
Integrated OpenJDK's java.lang.Thread
2007-06-05 06:57:18 +00:00
jfrijters
49fd637bdb
First batch of OpenJDK integration code.
2007-05-24 09:23:02 +00:00