Commit graph

104 commits

Author SHA1 Message Date
Jung-uk Kim
7500155a45 Fix linker errors with libinotify.
A patch was mismerged in the previous update.

PR:		243454
2020-04-08 20:43:11 +00:00
Greg Lewis
a5fb52f085 Update to 8u242
Security:	https://openjdk.java.net/groups/vulnerability/advisories/2020-01-14
2020-01-16 22:00:22 +00:00
Piotr Kubaj
a14ab5cbd0 java/openjdk8: add bootstrap and fix compilation for powerpc64 elfv2
Since the maintainer didn't respond, I'm adding the bootstrap to my own directory on freefall.

PR:		242965
Submitted by:	Mikael Urankar (original version)
Approved by:	java (maintainer timeout)
2020-01-12 19:10:40 +00:00
Greg Lewis
0de0dbaf3a Fix line numbers so patch can be applied
PR:		241324
Submitted by:	VVD <vvd@unislabs.com>
2019-10-23 15:27:30 +00:00
Greg Lewis
e0172e6694 Fix build with FONTCONFIG
* This gets the fontconfig patch applying cleanly and building.  No idea
  if it actually works or not.

PR:		241294
2019-10-17 23:45:38 +00:00
Greg Lewis
eb5f920507 Fix file interaction
* Load libnio in BsdNativeDispatcher, as per other OSes
* Export getmntonname0 from libnio

PR:		241317
Submitted by:	cmt@
2019-10-17 22:39:05 +00:00
Greg Lewis
936499b286 Update to 8u232 2019-10-16 02:28:37 +00:00
Greg Lewis
3a4c96b01f Update cacerts
* Use the latest cacerts file from Oracle's public distribution of 8u221.
2019-08-20 18:33:32 +00:00
Greg Lewis
c1db705823 Workaround for infinite recursion crash
* FreeBSD crashes on infinite recursion rather than throwing a stack
  overflow because the stack address of the fault is in the page below
  the guard area.  Workaround this by rounding down the fault address to
  the nearest page boundary.  Investigation is still under way into what
  may be causing this but this appears to prevent it in simple test cases.

PR:		222146
2019-08-12 04:05:58 +00:00
Greg Lewis
3b8668c653 Fix the build for the FONTCONFIG option
* Updated the fontconfig.patch file
* Simplified FONTCONFIG to use EXTRA_PATCHES rather than a separate target

PR:		239358
Submitted by:	John Hein <jcfyecrayz@liamekaens.com>, fluffy
2019-07-24 23:37:05 +00:00
Greg Lewis
ded732340a Fix the build for powerpc64
PR:		239368
Submitted by:	pkubaj
2019-07-24 23:29:39 +00:00
Greg Lewis
eee68625ae * Update to 8u212.
* Change master site to Github
* Remove patches and Makefile fixes that have been upstreamed to Github
2019-04-19 16:31:33 +00:00
Greg Lewis
33ddc15f90 . Update to 8u202. 2019-02-12 11:48:56 +00:00
Greg Lewis
d82ababf17 . When upgrading to 8u192 the endianess definitions specific to BSD were
missed during a large merge of the configuration file.  This resulted in,
  at least, macros affecting maths operations using the big endian rather
  than the little endian versions.

PR:		234689
2019-02-09 07:16:04 +00:00
Jung-uk Kim
2fa9296bac Add a missing symbol in the linker map file.
PR:		234593
2019-01-18 00:47:15 +00:00
Alex Dupre
ad43f6fd6e Add a WatchService implementation backed by kqueue,
leveraging the libinotify wrapper.

It's still possible to use the polling watchservice,
by defining the following system property:

 sun.nio.fs.watchservice=polling
2018-12-27 09:52:52 +00:00
Alex Dupre
848047809f Add support for millisecond resolution to get/setLastModifiedTime
in both Java IO and NIO.
2018-12-27 09:46:44 +00:00
Greg Lewis
4f3b06b197 . Fix SCTP support.
PR:		230321
Submitted by:	Timo Voelker <timo.voelker@fh-muenster.de>
2018-12-08 19:09:28 +00:00
Greg Lewis
37d69a8fea . Fix compilation on powerpc64
PR:		223834
Submitted by:	Curtis Hamilton <hamiltcl@verizon.net>
2018-12-08 18:43:56 +00:00
Greg Lewis
7fd2bcba96 . Update to 8u192.
PR:		230364
2018-12-08 18:35:30 +00:00
Jung-uk Kim
93c79b58f9 - Fix reversed ccache version detection logic. Enable ccache support.
- Use '-pthread' for Clang.  Clang supports '-pthread' on all BSDs except
for Darwin. [1]

Reported by:	Achilleas Mantzios <achill@matrix.gatewaynet.com> [1]
Tested by:	Achilleas Mantzios <achill@matrix.gatewaynet.com> [1]
2018-11-16 17:30:17 +00:00
Greg Lewis
1e0bab92eb . Update to 8u181. 2018-09-08 20:53:33 +00:00
Greg Lewis
780454f45b . Sync the cacerts file with the version in the latest Oracle binary release. 2018-07-03 06:31:39 +00:00
Greg Lewis
bbac75f33c . Update to 8u172. 2018-05-21 00:03:43 +00:00
Greg Lewis
9e41abde7f . Link libinstrument.so with iconv and jli as intended.
PR:		210297
2018-03-06 04:41:08 +00:00
Greg Lewis
bbcdfbd079 . Allow thread names to be set on FreeBSD.
PR:		223589
Submitted by:	bra@fsn.hu
2018-03-04 17:35:30 +00:00
Greg Lewis
5e80ef3db6 . Add a FONTCONFIG option which allows scaler to obtain per-family FreeType
rendering and loading and may noticeably improves font rendering in Java
  appications

PR:		215636
Submitted by:	Dmitri Goutnik <dg@syrec.org>
2018-03-04 00:56:31 +00:00
Jung-uk Kim
dd487071e8 Apply an upstream patch to fix Zero.
http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/8bd024c567e7

This patch complements the following commits.

http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/f8a45a60bc6b
http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/b1606443958a
http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/a3e756231625

Reported by:	Mikaël Urankar (mikael.urankar@gmail.com) (via swills)
2018-02-27 19:49:00 +00:00
Greg Lewis
99a2633b63 . Update to 8u162. 2018-02-03 21:41:06 +00:00
Jung-uk Kim
5befc99fa7 Fix a run-time crash with Clang 6.0.
Note this problem was introduced with fixes for JDK-8055007.

https://bugs.java.com/view_bug.do?bug_id=8055007
http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/changeset/c6211b707068

PR:		225054
2018-01-18 19:26:27 +00:00
Greg Lewis
7f279c7566 . Don't incorrectly set the scopeId of an IPv6 interface on BSD.
This fixes binding sockets for applications running on IPv6.

PR:		224079
Submitted by:	John W. O'Brien <john@saltant.com>
2017-12-25 06:25:53 +00:00
Jung-uk Kim
34f4fb6411 Add support for "-XX:+UseLargePages" option.
Excerpted from the original submission:

"FreeBSD on several architectures automatically utilizes superpages.  So,
for the JVM's JIT-compiled code cache and data heap, much of those regions
are already using superpages.  However, the -XX:+UseLargePages option still
serves a useful, if secondary, purpose on FreeBSD.  Essentially, it informs
the JVM's platform-independent layer what the supported page sizes are.  So,
when memory is mmap(2)ed and munmap(2)ed within the code cache and data
heap, the addresses and sizes will be superpage-aligned and a multiple of
the superpage size, respectively.  Currently, without this patch, the code
cache, for example, typically starts at an unaligned address, so the initial
portion of the code cache can never be a superpage.  Similarly, unaligned
munmap(2)s on the data heap force the kernel to demote superpages to 4KB
pages, and this patch eliminates those demotions.

This patch both introduces the code needed on FreeBSD to implement
-XX:+UseLargePages and deletes code that was copied from Linux that is, to
the best of my knowledge, useless on any version of BSD, i.e., UseHugeTLBFS
and UseSHM.  The additions are in part based on the Solaris version of
os_solaris.cpp, e.g., the sorting of the page sizes array."

Note I did minor style cleanup and regenerated the patches.

Submitted by:	alc
2017-12-01 01:56:02 +00:00
Greg Lewis
ef9ac15f4b . Update to 8u152. 2017-11-19 05:14:20 +00:00
Jung-uk Kim
2f8e1591bf Add preliminary support for aarch64 with Zero.
PR:		223231
2017-11-01 20:23:35 +00:00
Jung-uk Kim
6ea79f805e Fix available memory calculation on head after r309017.
Note PORTREVISION is not bumped because it only affects a kernel without
"options COMPAT_FREEBSD11".
2017-09-07 00:41:34 +00:00
Greg Lewis
33ad7fb605 . Update to 8u144. 2017-08-27 17:48:46 +00:00
Greg Lewis
5458611582 Update to 8u131. 2017-04-19 13:36:23 +00:00
Jung-uk Kim
d656192397 Merge fix for JDK-6900441 from Linux source.
http://bugs.java.com/view_bug.do?bug_id=6900441

While we are at it, merge fix for JDK-8029453.

http://bugs.java.com/view_bug.do?bug_id=8029453

Note JDK-8029453 only affects us when "-XX:WorkAroundNPTLTimedWaitHang=0" is
forcibly set.

Reported by:	张泽鹏 (redraiment at gmail dot com)
Tested by:	张泽鹏 (redraiment at gmail dot com)
2017-04-13 18:09:21 +00:00
Greg Lewis
7494e12b61 . Update to 8u121. 2017-01-29 07:08:18 +00:00
Greg Lewis
1baf25b002 . Fix compilation with Clang 4.0
PR:		216016
Submitted by:	jbeich@
2017-01-15 22:51:52 +00:00
Greg Lewis
ac342da485 . Add support for the HotSpot Serviceability Agent for ppc64.
. This also pulls in some OpenBSD tweaks, I believe.  These should be a
  no-op for FreeBSD though.

PR:		212709 (partial)
Submitted by:	Curtis Hamilton <hamiltcl@verizon.net>
2016-12-29 07:50:40 +00:00
Greg Lewis
ab93492888 . Update to 8u112. 2016-10-30 03:51:40 +00:00
Alex Dupre
6b6b8271c0 Update cacerts file using the one included in 8u111 release.
Notable change is the inclusion of Let's Encrypt CA.
2016-10-24 08:53:21 +00:00
Greg Lewis
71b1ef1dd5 . Include the thread id so that jstack can provide stack traces when
analysing core dumps.
. Bump PORTREVISION.

PR:		211196
Submitted by:	Ron Roskens <ronald.roskens@gmail.com>
2016-09-04 04:06:00 +00:00
Jung-uk Kim
f0ff2870a0 Make the FPU hack for ARM optional. Note this hack is not necessary for
VFPv3 or later, i.e., only VFPv1 and VFPv2 require this hack.

https://svnweb.freebsd.org/changeset/base/288983
2016-08-26 18:29:46 +00:00
Greg Lewis
9bbe93456a . Update to 8u102. 2016-07-30 13:55:17 +00:00
Greg Lewis
f497c53064 . Regenerate patch-bsd and patch-bsd-test. This obsoletes another patch
and should also fix ppc64 support.
2016-06-18 05:44:35 +00:00
Greg Lewis
9c0e7d35bc . Fix a double free bug. This is pulled from upstream.
. Bump PORTREVISION.

PR:		210226
Submitted by:	girgen@
2016-06-16 06:24:34 +00:00
Jung-uk Kim
cb138fe9d4 Unbreak arm.
- Remove armv6hf because it is default now.
- Merge a HotSpot fix from src/os_cpu/linux_zero/vm/os_linux_zero.cpp.
http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/c6ef40024aa2
- Add an upstream patch to unbreak Zero.
http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/8f58998958ca
- Extend PR209599 to cover arm platforms.
2016-06-13 12:00:19 +00:00
Greg Lewis
d172911638 . Use poll() rather than select() on BSD to avoid crashes during network
timeouts.  This is forwarded ported from OpenJDK 7.
. Bump PORTREVISION for this fix.

PR:		210191
Submitted by:	Andrew Smith <iamasmith.home@gmail.com>
2016-06-12 21:56:01 +00:00