United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7041410 finish removing SOLARIS_7_OR_LATER from HotSpot
JDK-7041410 : finish removing SOLARIS_7_OR_LATER from HotSpot

Details
Type:
Bug
Submit Date:
2011-05-03
Status:
Closed
Updated Date:
2011-07-29
Project Name:
JDK
Resolved Date:
2011-05-16
Component:
hotspot
OS:
solaris
Sub-Component:
build
CPU:
generic
Priority:
P5
Resolution:
Fixed
Affected Versions:
1.3.0
Fixed Versions:
hs21 (b12)

Related Reports
Backport:
Relates:

Sub Tasks

Description
The following bug fix removed the code associated with
#ifdef SOLARIS_7_OR_LATER:

    4343761 1/5 Remove dead code pertaining to _lwp_{create,exit}
                interposition [appcert clean]

from the following files:

    src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp
    src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp

as part of a larger code removal.

However, the define itself was not removed from:

    make/solaris/makefiles/sparcWorks.make

                                    

Comments
EVALUATION

Delete 4 lines from the Makefile.
                                     
2011-05-03
SUGGESTED FIX

Here is the context diff:

diff -r 405c634f4aaa make/solaris/makefiles/sparcWorks.make
--- a/make/solaris/makefiles/sparcWorks.make    Mon May 02 14:53:49 2011 -0700
+++ b/make/solaris/makefiles/sparcWorks.make    Tue May 03 08:10:03 2011 -0700
@@ -100,11 +100,6 @@
 
 LINK_LIB.CC/PRE_HOOK += $(JVM_CHECK_SYMBOLS) || exit 1;
 
-# Some interfaces (_lwp_create) changed with LP64 and Solaris 7
-SOLARIS_7_OR_LATER := \
-$(shell uname -r | awk -F. '{ if ($$2 >= 7) print "-DSOLARIS_7_OR_LATER"; }')
-CFLAGS += ${SOLARIS_7_OR_LATER}
-
 # New architecture options started in SS12 (5.9), we need both styles to build.
 #   The older arch options for SS11 (5.8) or older and also for /usr/ccs/bin/as.
 #   Note: default for 32bit sparc is now the same as v8plus, so the
                                     
2011-05-03
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/5781ed5f1865
                                     
2011-05-03
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/5781ed5f1865
                                     
2011-05-04



Hardware and Software, Engineered to Work Together