← Back to team overview

openjdk team mailing list archive

[Bug 1611598] Re: jamvm is broken due to missing native methods in sun.misc.Unsafe

 

Launchpad has imported 1 comments from the remote bug at
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3134.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2016-08-10T04:22:49+00:00 Tiago Stürmer Daitx wrote:

Created attachment 1546
add 2 new sun.misc.unsafe methods to jamvm

[Issue]
The fix of OpenJDK's bug 8158260 (http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/hotspot/rev/4f8cbd54a9c6) introduced 2 new native methods to the sun.misc.Unsafe class: isBigEndian0 and unalignedAccess0. 

This completely broke JamVM and as of now it is impossible to start a
jamvm session.

jtreg summary results:
hotspot   - Test results: passed: 5; failed: 309; error: 7
langtools - Test results: passed: 374; failed: 1,593; error: 1

An error output from a testcase:
----------System.err:(6/344)----------
Error initialising VM (initialiseMainThread)
Check the README for compatible class-libraries/versions
Exception occurred while printing exception (java/lang/NullPointerException)...
Original exception was java/lang/UnsatisfiedLinkError
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
result: Failed. Unexpected exit from test [exit code: 1]

Running java -jamvm -version fails the same way.


[Fix]
The simple fix is to add both methods to the natives.c file in the classlib/openjdk directory.

I have tested this with IcedTea 2.6.7 and now jtreg passes:
hotspot   - Test results: passed: 220; failed: 90; error: 11
langtools - Test results: passed: 1,901; failed: 65; error: 2


I have reported this upstream at https://sourceforge.net/p/jamvm/code/merge-requests/1/ and it is now waiting review.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1611598/comments/0


** Changed in: openjdk
       Status: Unknown => Confirmed

** Changed in: openjdk
   Importance: Unknown => Critical

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1611598

Title:
  jamvm is broken due to missing native methods in sun.misc.Unsafe

Status in OpenJDK:
  Confirmed
Status in openjdk-7 package in Ubuntu:
  Confirmed

Bug description:
  [Issue]
  The fix of OpenJDK's bug 8158260 (http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/hotspot/rev/4f8cbd54a9c6) introduced 2 new native methods to the sun.misc.Unsafe class: isBigEndian0 and unalignedAccess0.

  This completely broke JamVM and as of now it is impossible to start a
  jamvm session.

  jtreg summary results for OpenJDK 7:
  hotspot   - Test results: passed: 5; failed: 309; error: 7
  langtools - Test results: passed: 374; failed: 1,593; error: 1

  An error output from a testcase:
  ----------System.err:(6/344)----------
  Error initialising VM (initialiseMainThread)
  Check the README for compatible class-libraries/versions
  Exception occurred while printing exception (java/lang/NullPointerException)...
  Original exception was java/lang/UnsatisfiedLinkError
  Error: Could not create the Java Virtual Machine.
  Error: A fatal exception has occurred. Program will exit.
  result: Failed. Unexpected exit from test [exit code: 1]

  Running java -jamvm -version fails the same way.

  [Fix]
  The simple fix is to add both methods to the natives.c file in the classlib/openjdk directory.

  I have tested this with IcedTea 2.6.7 and now jtreg passes:
  hotspot   - Test results: passed: 220; failed: 90; error: 11
  langtools - Test results: passed: 1,901; failed: 65; error: 2

  I have reported this upstream at https://sourceforge.net/p/jamvm/code
  /merge-requests/1/ and it is now waiting review.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openjdk/+bug/1611598/+subscriptions


References