United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8003935 : Simplify the needed includes for using Thread::current()

Details
Type:
Enhancement
Submit Date:
2012-11-23
Status:
Resolved
Updated Date:
2013-04-30
Project Name:
JDK
Resolved Date:
2012-11-27
Component:
hotspot
OS:
Sub-Component:
CPU:
Priority:
P4
Resolution:
Fixed
Affected Versions:
Fixed Versions:
hs25 (b11)

Related Reports
Backport:

Sub Tasks

Description
The be able to use Thread::current() we have to manually insert logic to include the correct thread_<os>.inline.hpp file. Like:
#include "runtime/thread.hpp"
#ifdef TARGET_OS_FAMILY_linux
# include "thread_linux.inline.hpp"
#endif
#ifdef TARGET_OS_FAMILY_solaris
# include "thread_solaris.inline.hpp"
#endif
#ifdef TARGET_OS_FAMILY_windows
# include "thread_windows.inline.hpp"
#endif
#ifdef TARGET_OS_FAMILY_bsd
# include "thread_bsd.inline.hpp"
#endif

I propose that we fold these into a new file called thread.inline.hpp, and always include that file instead.
                                    

Comments
URL:   http://hg.openjdk.java.net/hsx/hsx25/hotspot/rev/f34d701e952e
User:  amurillo
Date:  2012-12-01 02:59:09 +0000

                                     
2012-12-01
URL:   http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/f34d701e952e
User:  stefank
Date:  2012-11-27 15:24:18 +0000

                                     
2012-11-27



Hardware and Software, Engineered to Work Together