Bug 205843 - java/openjdk8: Regression: Internal Error (os_bsd.cpp:4321) - Error: Unimplemented()
Summary: java/openjdk8: Regression: Internal Error (os_bsd.cpp:4321) - Error: Unimplem...
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Greg Lewis
URL:
Keywords: needs-qa, regression
Depends on:
Blocks:
 
Reported: 2016-01-03 16:17 UTC by Tobias Feldhaus
Modified: 2016-01-13 18:14 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (java)


Attachments
Stacktrace (31.38 KB, text/plain)
2016-01-03 16:17 UTC, Tobias Feldhaus
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Feldhaus 2016-01-03 16:17:50 UTC
Created attachment 165009 [details]
Stacktrace

While trying to port Facebooks Presto to FreeBSD I reported a bug in OpenJDK8 (see bug #205229). The commit ports r405058 which was trying to fix this, most probably is the cause for this bug. The stacktrace is attached to this report.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2016-01-03 16:20:28 UTC
Assign original committer of
Comment 2 Greg Lewis freebsd_committer 2016-01-03 20:44:30 UTC
This is correct behaviour.  The functionality is unimplemented on FreeBSD.  It is now marked explicitly as such rather than throwing a unsatisfied link error.
Comment 3 commit-hook freebsd_committer 2016-01-05 22:40:24 UTC
A commit references this bug:

Author: jkim
Date: Tue Jan  5 22:39:47 UTC 2016
New revision: 405320
URL: https://svnweb.freebsd.org/changeset/ports/405320

Log:
  - Partially implement getThreadUserTime() using getrusage(2).  Note we can
  only get usage for the current thread.  Return -1 if the requested function
  is not supported, i.e., user time for other threads, rather than crash. [1]
  - Properly implement os::elapsedVTime() using getrusage().  Basically, it is
  taken from Linux version.
  - Temporarily revert r403748 to fix bootstrapping with earlier OpenJDK8. [2]

  PR:		205523, 205843 [1]
  PR:		205544 [2]

Changes:
  head/java/openjdk8/Makefile
  head/java/openjdk8/files/patch-hotspot_src_os_bsd_vm_os__bsd.cpp
Comment 4 commit-hook freebsd_committer 2016-01-13 18:14:38 UTC
A commit references this bug:

Author: jkim
Date: Wed Jan 13 18:13:57 UTC 2016
New revision: 406064
URL: https://svnweb.freebsd.org/changeset/ports/406064

Log:
  MFH:	r405058, r405320

  - Stub implementation of OperatingSystemImpl.
  - Partially implement getThreadUserTime() using getrusage(2).  Note we can
  only get usage for the current thread.  Return -1 if the requested function
  is not supported, i.e., user time for other threads, rather than crash.
  - Properly implement os::elapsedVTime() using getrusage().  Basically, it is
  taken from Linux version.
  - Temporarily revert r403748 to fix bootstrapping with earlier OpenJDK8.

  PR:		205229, 205523, 205544, 205843
  Approved by:	ports-secteam (feld)

Changes:
_U  branches/2016Q1/
  branches/2016Q1/java/openjdk8/Makefile
  branches/2016Q1/java/openjdk8/files/patch-hotspot_src_os_bsd_vm_os__bsd.cpp
  branches/2016Q1/java/openjdk8/files/patch-jdk-src-solaris-native-sun-management-BsdOperatingSystem.c