Joel Dice
6f1d02dae7
remove the libstdc++ dependency once and for all
...
The trick is to make all destructors non-virtual. This is safe because
we never use the delete operator, which is the only case where virtual
destructors are relevant. This is a better solution than implementing
our own delete operator, because we want libraries loaded at runtime to
use the libstdc++ version, not ours.
2008-10-28 15:40:50 -06:00
Joel Dice
88a1faa2a2
set global system pointer to null in MySystem::dispose in windows.cpp
2008-10-28 12:15:27 -06:00
Joel Dice
01cc868797
remove debug code from builtin.cpp
2008-10-27 15:39:14 -06:00
Joel Dice
4d613f404f
use dbghelp.dll to generate crash dump file on Windows XP and later
...
The dump is written to the directory specified via the avian.crash.dir
system property if that property is set and is not written otherwise.
2008-10-27 15:13:27 -06:00
Joel Dice
003afdc918
fix heap dump facility to visit all roots
2008-10-24 18:48:10 -06:00
Joel Dice
708d2f1c0c
compile assembly files using different flags than C++ files
...
This is intended to fix the build error described here:
http://groups.google.com/group/avian/msg/38b6619d6d8cac68
2008-10-23 16:55:39 -06:00
Joel Dice
3b67417695
heap dump bugfixes
2008-10-22 18:05:34 -06:00
Joel Dice
d25a6098e6
remove support for hiding constructors and accessors in type-generator.cpp
...
This feature is not being used, and it may be the cause of this bug:
http://groups.google.com/group/avian/browse_thread/thread/955aa1479e9fddca
2008-10-22 08:39:27 -06:00
Joel Dice
e2f3e3da77
enter active state at start of Java_java_lang_Runtime_dumpHeap
2008-10-21 17:49:32 -06:00
Joel Dice
0459a7701c
enter exclusive state before dumping heap
2008-10-21 17:47:38 -06:00
Joel Dice
5eb905fd2d
revert accidentally-committed change to Hello.java
2008-10-21 17:42:05 -06:00
Joel Dice
6a5116e7a7
implement primitive heap dump facility for memory profiling, accessible via Runtime.dumpHeap
...
The proper way to do this is to implement a subset of JVMTI, but this
will do the job for now.
2008-10-21 17:38:20 -06:00
Joel Dice
f38a55cbb2
make linking against libstdc++ the default, overrideable via use-libstdcpp make parameter
2008-10-13 16:31:59 -06:00
dain
8549ab856e
Merge branch 'master' of ssh://oss.readytalk.com/var/local/git/avian
2008-10-13 09:48:04 -06:00
dain
157b1facf8
Add stdc++ to common-lflags
2008-10-13 09:46:07 -06:00
Joel Dice
1a39012002
support building on Cygwin
2008-10-11 14:46:20 -06:00
Joel Dice
54e618847a
use /bin/sh instead of /bin/bash to run test.sh, since MSYS does not have /bin/bash (although /bin/sh is bash)
2008-10-11 11:59:18 -06:00
Frank Jacobs
471ac4d960
support building from a directory with spaces in its name
2008-10-11 10:10:11 -06:00
Joel Dice
a6f1b92b63
additional readme.txt embedding example clarification
2008-10-10 18:08:01 -06:00
Joel Dice
7a1522e94e
readme.txt clarifications for building on Windows
2008-10-10 17:53:51 -06:00
Joel Dice
5c04c19e29
look for %s@%d format symbols when resolving native methods on Windows, which obviates the need for -k flag to dlltool
2008-10-10 17:37:36 -06:00
Joel Dice
e3a5c7e03f
look for jar under $JAVA_HOME/bin
2008-10-10 17:01:33 -06:00
Joel Dice
96d7bf571d
implement a few methods to make SWT 3.4 happy
2008-10-10 11:49:28 -06:00
Joel Dice
f423d39b25
explicitly include stdint.h in java-nio.cpp
2008-10-10 11:49:07 -06:00
Joel Dice
88828e7a02
update readme.txt windows build instructions
2008-10-10 11:47:31 -06:00
Joel Dice
e2c04b2761
various makefile refinements for better supporting native Windows builds
2008-10-10 11:43:40 -06:00
Joel Dice
3575e28e87
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2008-10-10 10:55:14 -06:00
Frank Jacobs
68513521ef
support building on Windows using MinGW
...
Here is a patch for getting Avian to build in Windows. I used MinGW
and MSYS for the build environment. The patch has the following
changes:
1. java-nio.cpp: Had to add an include and remove a function
declaration that was reported as duplicate.
2. readme.txt: Updated the instructions to include notes about
building on Windows.
3. makefile: Added a conditional for MinGW. I left the existing "ifeq
($(platform),windows)" conditional alone so as to not break
cross-compiled Windows builds. There are some similarities between the
two, so it might be possible to combine portions of them in an elegant
manner. Since I'm not sure how the cross-compiled builds have been
done, I didn't want to mess with that portion of the makefile.
2008-10-10 08:06:31 -06:00
dain
7dbd4903f0
set default locale to en, us
2008-10-09 18:30:24 -06:00
dain
4aa731bacf
implemented getDeclaredConstructor method
2008-10-09 18:29:53 -06:00
Joel Dice
f9426f084f
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2008-10-09 17:15:02 -06:00
Joel Dice
81cb951b08
fix stack corruption due to spurious pop events generated for jsr bytecodes
2008-10-09 17:14:52 -06:00
dain
b19ce6378a
Add Integer valueOf(String) method
2008-10-08 13:51:19 -06:00
Joel Dice
aeafb52bcb
add ZipFile(File) constructor and ZipFile.close
2008-10-06 17:30:48 -06:00
Joel Dice
114bf777bb
avoid null pointer deref in Java_java_io_RandomAccessFile_open
2008-10-06 17:30:07 -06:00
Joel Dice
ae75be5683
add copyright headers
2008-10-03 14:57:40 -06:00
Joel Dice
2684b7c024
remove debug logging
2008-10-03 14:26:23 -06:00
Joel Dice
49534c25f6
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2008-10-03 14:15:53 -06:00
Joel Dice
4c307ae8c6
implement minimal, read-only versions of RandomAccessFile and ZipFile
2008-10-03 14:15:47 -06:00
dain
c9e0aa824d
Initialized variables to appease gcc 4.2
2008-10-02 13:20:30 -06:00
Joel Dice
07daa9be51
free properties array in Machine::dispose
2008-09-30 17:03:13 -06:00
Joel Dice
df75153a85
handle case of null Stack::pushEvent in CallEvent ctor
2008-09-30 11:22:46 -06:00
Joel Dice
89cc5aa546
initialize JarElement::region in constructor
2008-09-29 18:04:47 -06:00
Joel Dice
e2f0b45337
add 'small' optimization mode
2008-09-29 11:13:31 -06:00
Joel Dice
823327a00b
fix bytecode address calculations which broke when using -Os
2008-09-29 08:46:44 -06:00
Joel Dice
1910e1b837
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2008-09-26 18:17:41 -06:00
Joel Dice
ac988f7a0d
fix static field lookup from interfaces
2008-09-26 18:17:13 -06:00
Joel Dice
025cf59bb6
Vector.setElementAt should return void
2008-09-26 18:16:35 -06:00
Joel Dice
066714933c
implement Random.nextBytes and Random.nextLong
2008-09-26 15:30:08 -06:00
Joel Dice
a16a00a7fb
implement ByteArrayOutputStream.reset
2008-09-26 15:29:38 -06:00