mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
8161258: Simplify including platform files
Include patform files with macros cpu_header() etc. Do various cleanups of macro usages. Remove _64/_32 from adlc generated files and platform .hpp files. Merge stubRoutines_x86*.hpp. Remove empty mutex_<os>* files. Reviewed-by: dholmes, coleenp, kbarrett
This commit is contained in:
parent
e757151666
commit
da3339948e
116 changed files with 427 additions and 1876 deletions
|
@ -28,6 +28,7 @@
|
|||
#include "runtime/frame.inline.hpp"
|
||||
#include "runtime/interfaceSupport.hpp"
|
||||
#include "runtime/os.hpp"
|
||||
#include "utilities/macros.hpp"
|
||||
#include "utilities/vmError.hpp"
|
||||
|
||||
#include <signal.h>
|
||||
|
@ -214,7 +215,7 @@ void os::Posix::print_rlimit_info(outputStream* st) {
|
|||
else st->print("%luk", rlim.rlim_cur >> 10);
|
||||
|
||||
// Isn't there on solaris
|
||||
#if !defined(TARGET_OS_FAMILY_solaris) && !defined(TARGET_OS_FAMILY_aix)
|
||||
#if !defined(SOLARIS) && !defined(AIX)
|
||||
st->print(", NPROC ");
|
||||
getrlimit(RLIMIT_NPROC, &rlim);
|
||||
if (rlim.rlim_cur == RLIM_INFINITY) st->print("infinity");
|
||||
|
@ -1062,28 +1063,28 @@ int os::Posix::unblock_thread_signal_mask(const sigset_t *set) {
|
|||
}
|
||||
|
||||
address os::Posix::ucontext_get_pc(const ucontext_t* ctx) {
|
||||
#ifdef TARGET_OS_FAMILY_linux
|
||||
return Linux::ucontext_get_pc(ctx);
|
||||
#elif defined(TARGET_OS_FAMILY_solaris)
|
||||
return Solaris::ucontext_get_pc(ctx);
|
||||
#elif defined(TARGET_OS_FAMILY_aix)
|
||||
#if defined(AIX)
|
||||
return Aix::ucontext_get_pc(ctx);
|
||||
#elif defined(TARGET_OS_FAMILY_bsd)
|
||||
#elif defined(BSD)
|
||||
return Bsd::ucontext_get_pc(ctx);
|
||||
#elif defined(LINUX)
|
||||
return Linux::ucontext_get_pc(ctx);
|
||||
#elif defined(SOLARIS)
|
||||
return Solaris::ucontext_get_pc(ctx);
|
||||
#else
|
||||
VMError::report_and_die("unimplemented ucontext_get_pc");
|
||||
#endif
|
||||
}
|
||||
|
||||
void os::Posix::ucontext_set_pc(ucontext_t* ctx, address pc) {
|
||||
#ifdef TARGET_OS_FAMILY_linux
|
||||
Linux::ucontext_set_pc(ctx, pc);
|
||||
#elif defined(TARGET_OS_FAMILY_solaris)
|
||||
Solaris::ucontext_set_pc(ctx, pc);
|
||||
#elif defined(TARGET_OS_FAMILY_aix)
|
||||
#if defined(AIX)
|
||||
Aix::ucontext_set_pc(ctx, pc);
|
||||
#elif defined(TARGET_OS_FAMILY_bsd)
|
||||
#elif defined(BSD)
|
||||
Bsd::ucontext_set_pc(ctx, pc);
|
||||
#elif defined(LINUX)
|
||||
Linux::ucontext_set_pc(ctx, pc);
|
||||
#elif defined(SOLARIS)
|
||||
Solaris::ucontext_set_pc(ctx, pc);
|
||||
#else
|
||||
VMError::report_and_die("unimplemented ucontext_get_pc");
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue