Review request: 8003935: Simplify the needed includes for using Thread::current() (original) (raw)
Stefan Karlsson stefan.karlsson at oracle.com
Sun Nov 25 23:49:45 PST 2012
- Previous message: Review request: 8003935: Simplify the needed includes for using Thread::current()
- Next message: Review request: 8003935: Simplify the needed includes for using Thread::current()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thanks, Rickard.
StefanK
On 2012-11-26 08:48, Rickard Bäckman wrote:
Stefan,
nice change. Looks good. /R On Nov 23, 2012, at 12:54 PM, Stefan Karlsson wrote:
http://cr.openjdk.java.net/~stefank/8003935/webrev
Today, whenever we use Thread::current() we have to all these lines: #include "runtime/thread.hpp" #ifdef TARGETOSFAMILYlinux # include "threadlinux.inline.hpp" #endif #ifdef TARGETOSFAMILYsolaris # include "threadsolaris.inline.hpp" #endif #ifdef TARGETOSFAMILYwindows # include "threadwindows.inline.hpp" #endif #ifdef TARGETOSFAMILYbsd # include "threadbsd.inline.hpp" #endif This patch hides this dispatching in a new file named thread.inline.hpp. Now we only have to include thread.inline.hpp. Some background to these includes: This type of dispatching was introduced into the source files when we removed the includeDB files. We discussed whether we should use "dispatch files" or not for this kind platform dependent includes. The decision was to not create dispatch files for all types of platform at that time, but instead manually create them when we thought it was warranted. thanks, StefanK
- Previous message: Review request: 8003935: Simplify the needed includes for using Thread::current()
- Next message: Review request: 8003935: Simplify the needed includes for using Thread::current()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]