United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7104209 Cleanup and remove librmi (native library)
JDK-7104209 : Cleanup and remove librmi (native library)

Details
Type:
Bug
Submit Date:
2011-10-24
Status:
Closed
Updated Date:
2013-09-04
Project Name:
JDK
Resolved Date:
2011-10-29
Component:
core-libs
OS:
generic
Sub-Component:
java.rmi
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Backport:

Sub Tasks

Description
It appears that the only function of librmi is to export the VM function JVM_LatestUserDefinedLoader. It seems really silly to have a whole native library to perform such a trivial operation. JVM_LatestUserDefinedLoader is also used in java.io.ObjectInputStream.

It would make more sense to put an entry point in sun.misc.VM, and have rmi, ois invoke it. This would completely eliminate the need for librmi.

                                    

Comments
EVALUATION

Seems reasonable.
                                     
2011-10-24
EVALUATION

JDK 8 changeset:

Changeset: 3f391e649ccb
Author:    chegar
Date:      2011-10-24 20:55 +0100
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3f391e649ccb

7104209: Cleanup and remove librmi (native library)
Reviewed-by: mduigou, alanb

! make/java/java/mapfile-vers
! make/sun/rmi/rmi/Makefile
- make/sun/rmi/rmi/mapfile-vers
! src/share/classes/java/io/ObjectInputStream.java
! src/share/classes/sun/misc/VM.java
! src/share/classes/sun/rmi/server/MarshalInputStream.java
! src/share/native/java/io/ObjectInputStream.c
! src/share/native/sun/misc/VM.c
- src/share/native/sun/rmi/server/MarshalInputStream.c
                                     
2011-10-24
Verified with JDK8 nightly results, the RMI tests' failures were fixed
                                     
2013-08-19



Hardware and Software, Engineered to Work Together