summaryrefslogtreecommitdiff
path: root/lib/jinterface
Commit message (Collapse)AuthorAgeFilesLines
* [jinterface] Extend timetrap timers in nc_SUITE and jinterface_SUITESiri Hansen2013-04-222-2/+2
|
* [jinterface] Set max heap size for jvm when running echo_serverSiri Hansen2013-04-221-3/+6
| | | | | | | The test cases nc_SUITE:decompress_roundtrip and nc_SUITE:compress_roundtrip fails on some machines with OutOfMemoryException. This commit sets the max heap size for the jvm to 256M in nc_SUITE in order to get around this.
* [jinterface] Clean up hanging java nodes after each test caseSiri Hansen2013-04-223-3/+37
|
* [jinterface] Kill process between tests to avoid consequential errorSiri Hansen2013-03-052-8/+12
| | | | | | | | | | In some cases when a test case fails, the erl_link_server process (which is spawned by many test cases in jinterface_SUITE) does not terminate. This causes the next test case to fail with a badarg as it tries to register a new process with the same name. To avoid this, erl_link_server, if it exists, is now killed in end_per_testcase. Also, some compiler warnings are removed from jitu.erl.
* [jinterface] Make tests handle space in path on windowsSiri Hansen2013-03-041-12/+14
| | | | Add quotes around classpath on windows.
* Prepare releaseOTP_R16BErlang/OTP2013-02-251-0/+36
|
* Update copyright yearsBjörn-Egil Dahlberg2013-02-222-2/+2
|
* Merge branch 'nk/jinterface_dont_compress_if_size_increased/OTP-10822'Fredrik Gustafsson2013-02-132-29/+119
|\ | | | | | | | | | | | | | | | | | | | | | | * nk/jinterface_dont_compress_if_size_increased/OTP-10822: jinterface, OtpOutputStream: add a write_compressed(object, level) method jinterface: fix a memory leak jinterface: new limited OutputStream implementation without the need to resize jinterface: don't return compressed external term if bigger than uncompressed jinterface: don't compress small erlang terms < 5 bytes jinterface, OtpOutputStream: properly override the three write() methods to ensure our growth strategy jinterface: fix typo in error message if encoding fails jinterface: don't need another FilterOutputStream wrapper
| * jinterface, OtpOutputStream: add a write_compressed(object, level) methodNico Kruber2013-02-041-3/+15
| | | | | | | | Now that we use an own deflater, we can also allow the user to specify the compression level as in Erlang's term_to_binary/2.
| * jinterface: fix a memory leakNico Kruber2013-02-041-1/+6
| | | | | | | | after the first try to compress the value with a fixed buffer size, the deflater must be closed so that memory can be (instantly) reused
| * jinterface: new limited OutputStream implementation without the need to resizeNico Kruber2013-02-041-7/+7
| | | | | | | | (saves memory re-allocations)
| * jinterface: don't return compressed external term if bigger than uncompressedNico Kruber2013-02-042-7/+46
| | | | | | | | Now, OtpOutputStream#write_compressed() uses the same mechanism as erts_term_to_binary() in external.c: it tries to compress the given term into a buffer of the size of the uncompressed term and if this is not possible, i.e. the compression plus headers is bigger, it uses the uncompressed external term format instead.
| * jinterface: don't compress small erlang terms < 5 bytesNico Kruber2013-02-041-10/+28
| | | | | | | | Compression always has at least 5 bytes (the compressed tag + original size) so we can't get a smaller external term if the original term is already smaller than 5 bytes.
| * jinterface, OtpOutputStream: properly override the three write() methods to ↵Nico Kruber2013-02-041-10/+28
| | | | | | | | | | | | ensure our growth strategy Previously, if code called e.g. write(byte[] b, int off, int len), the growth strategy of the parent class ByteArrayOutputStream was used.
| * jinterface: fix typo in error message if encoding failsNico Kruber2013-02-041-1/+1
| |
| * jinterface: don't need another FilterOutputStream wrapperNico Kruber2013-02-041-3/+1
| | | | | | | | DeflaterOutputStream is already an FilterOutputStream
* | Merge branch 'vd/jinterface_windows_cookie/OTP-10821'Fredrik Gustafsson2013-02-121-2/+14
|\ \ | | | | | | | | | | | | * vd/jinterface_windows_cookie/OTP-10821: jinterface: fix finding cookie file on windows
| * | jinterface: fix finding cookie file on windowsVlad Dumitrescu2013-02-011-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Jinterface uses System.getProperty("user.home") to locate the user's home and the cookie file. On Windows, the result might be different than the value used by Erlang, which looks first to the HOMEDRIVE and HOMEPATH variables. The fix makes jinterface use the same logic.
* | | Bumped version numberFredrik Gustafsson2013-02-111-1/+1
| | |
* | | fix bug in OtpErlangTuple constructorVlad Dumitrescu2013-02-011-2/+2
|/ / | | | | | | The elems field would remain unitialized if the count parameter is zero in constructor
* | Prepare releaseOTP_R16A_RELEASE_CANDIDATEErlang/OTP2013-01-292-1/+48
| |
* | Update copyright yearsBjörn-Egil Dahlberg2013-01-258-8/+8
| |
* | Merge branch 'sverk/r16/utf8-atoms'Sverker Eriksson2013-01-236-56/+226
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sverk/r16/utf8-atoms: erl_interface: Fix bug when transcoding atoms from and to UTF8 erl_interface: Changed erlang_char_encoding interface erts: Testcase doing unicode atom printout with ~w erl_interface: even more utf8 atom stuff erts: Fix bug in analyze_utf8 causing faulty latin1 detection Add UTF-8 node name support for epmd workaround... Fix merge conflict with hasse UTF-8 atom documentation test case erl_interface: utf8 atoms continued Add utf8 atom distribution test cases atom fixes for NIFs and atom_to_binary UTF-8 support for distribution Implement UTF-8 atom support for jinterface erl_interface: Enable decode of unicode atoms stdlib: Fix printing of unicode atoms erts: Change internal representation of atoms to utf8 erts: Refactor rename DFLAG(S)_INTERNAL_TAGS for conformity Conflicts: erts/emulator/beam/io.c OTP-10753
| * | Implement UTF-8 atom support for jinterfaceRickard Green2013-01-166-56/+226
| | |
* | | Merge branch 'nox/enable-silent-rules/OTP-10726'Björn-Egil Dahlberg2013-01-182-9/+12
|\ \ \ | | | | | | | | | | | | | | | | * nox/enable-silent-rules/OTP-10726: Implement ./otp_build configure --enable-silent-rules
| * | | Implement ./otp_build configure --enable-silent-rulesAnthony Ramine2013-01-152-9/+12
| |/ / | | | | | | | | | | | | | | | With silent rules, the output of make is less verbose and compilation warnings are easier to spot. Silent rules are disabled by default and can be disabled or enabled at will by make V=0 and make V=1.
* | | Prepare OTP files for Unicode as default encodingHans Bolinder2013-01-091-3/+4
|/ /
* | Merge branch 'maint'Björn-Egil Dahlberg2012-11-231-1/+1
|\ \ | |/
| * Update copyright yearsBjörn-Egil Dahlberg2012-11-231-1/+1
| |
* | Merge branch 'vd/jinterface_epmd_localhost'Henrik Nord2012-11-141-1/+1
|\ \ | | | | | | | | | | | | | | | | | | * vd/jinterface_epmd_localhost: OtpEpmd.lokupNames() may hang if network is badly configured OTP-10579
| * | OtpEpmd.lokupNames() may hang if network is badly configuredVlad Dumitrescu2012-10-011-1/+1
| |/ | | | | | | | | | | | | | | On some machines with weird network configurations, InetAddress.getLocalHost() hangs. Searching for "localhost" works (at least in the cases I met). The difference is that the loopback address will be returned, instead of the real IP address, but for the local machine this should not be a problem.
* | Merge branch 'nk/jinterface-fix_compressed_binary'Henrik Nord2012-10-182-5/+25
|\ \ | |/ |/| | | | | | | | | | | * nk/jinterface-fix_compressed_binary: add (de)compress roundtrip tests with larger values fix reading compressed binary terms from Java OTP-10505
| * add (de)compress roundtrip tests with larger valuesNico Kruber2012-09-051-1/+17
| |
| * fix reading compressed binary terms from JavaNico Kruber2012-06-131-4/+8
| | | | | | | | | | | | | | | | | | | | | | Larger compressed binary could not be decoded inside JInterface. - applied a patch posted on erlang-questins in September 2009 http://erlang.org/pipermail/erlang-patches/2009-September/000478.html -> extended this patch as it alone was not enough to fix the bug Problem was that when reading from an InputStream, you can only specify a maximum number of bytes to read. Java doesn't quarantee that it actually reads this many bytes - it could be less! This patch now reads up until the expected size bytes. If there are more than expected, the actual number of available bytes is not printed (we probably shouldn't read the additional bytes, security-wise - the erlang external byte representation is broken in this case though).
* | Escape whitespace in pathLukas Larsson2012-09-031-3/+9
| |
* | Update copyright yearsBjörn-Egil Dahlberg2012-08-314-4/+4
|/
* Update to work with whitespace in exec pathLukas Larsson2012-06-053-18/+18
| | | | | OTP-10106 OTP-10107
* Prepare releaseOTP_R15B01Erlang/OTP2012-04-012-1/+34
|
* Update copyright yearsBjörn-Egil Dahlberg2012-03-305-5/+5
|
* Merge branch 'vd/jinterface-atom-message' into maintHenrik Nord2012-02-161-1/+1
|\ | | | | | | | | | | | | * vd/jinterface-atom-message: Improve error message when creating a too long OtpErlangAtom OTP-9928
| * Improve error message when creating a too long OtpErlangAtomVlad Dumitrescu2011-11-151-1/+1
| | | | | | | | | | | | Also print the value that we tried to use for the atom. This helps a lot when debugging and doesn't affect anything when the length is normal.
* | Merge branch 'vd/java-string-bug' into maintHenrik Nord2012-02-163-9/+21
|\ \ | | | | | | | | | | | | | | | | | | | | | * vd/java-string-bug: add test for Java string bug workaround for Java bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6242664 OTP-9927
| * | add test for Java string bugVlad Dumitrescu2011-11-242-2/+11
| | |
| * | workaround for Java bug ↵Vlad Dumitrescu2011-11-241-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6242664 Java 1.5 has a bug where detecting codepoint offsets in strings that are created by String.substring() gives wrong results. The new implementation uses a different method, avoinding the issue. The following code will crash without the fix: final String s = "abcdefg"; final String ss = s.substring(3, 6); final int[] cps = OtpErlangString.stringToCodePoints(ss);
* | | Merge branch 'rc/spell-registered' into maintHenrik Nord2012-02-161-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * rc/spell-registered: Correct spelling of "registered" in various places in the source code OTP-9925
| * | | Correct spelling of "registered" in various places in the source codeRichard Carlsson2012-01-031-1/+1
| | | |
* | | | Fix some broken links in documentationLukas Larsson2012-01-032-3/+3
|/ / /
* | | Prepare releaseErlang/OTP2011-12-122-1/+22
| | |
* | | Update copyright yearsBjörn-Egil Dahlberg2011-12-093-3/+3
| | |
* | | restore Java5 compatibilityNico Kruber2011-12-091-1/+3
| | |