mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-24 04:54:40 +02:00
Merge
This commit is contained in:
commit
1a700c9216
1322 changed files with 52051 additions and 19966 deletions
|
@ -50,6 +50,8 @@
|
|||
# include <setjmp.h>
|
||||
#endif
|
||||
|
||||
class AgentLibrary;
|
||||
|
||||
// os defines the interface to operating system; this includes traditional
|
||||
// OS services (time, I/O) as well as other functionality with system-
|
||||
// dependent code.
|
||||
|
@ -332,8 +334,8 @@ class os: AllStatic {
|
|||
|
||||
static char* non_memory_address_word();
|
||||
// reserve, commit and pin the entire memory region
|
||||
static char* reserve_memory_special(size_t size, char* addr = NULL,
|
||||
bool executable = false);
|
||||
static char* reserve_memory_special(size_t size, size_t alignment,
|
||||
char* addr, bool executable);
|
||||
static bool release_memory_special(char* addr, size_t bytes);
|
||||
static void large_page_init();
|
||||
static size_t large_page_size();
|
||||
|
@ -541,6 +543,17 @@ class os: AllStatic {
|
|||
// Unload library
|
||||
static void dll_unload(void *lib);
|
||||
|
||||
// Return the handle of this process
|
||||
static void* get_default_process_handle();
|
||||
|
||||
// Check for static linked agent library
|
||||
static bool find_builtin_agent(AgentLibrary *agent_lib, const char *syms[],
|
||||
size_t syms_len);
|
||||
|
||||
// Find agent entry point
|
||||
static void *find_agent_function(AgentLibrary *agent_lib, bool check_lib,
|
||||
const char *syms[], size_t syms_len);
|
||||
|
||||
// Print out system information; they are called by fatal error handler.
|
||||
// Output format may be different on different platforms.
|
||||
static void print_os_info(outputStream* st);
|
||||
|
@ -817,6 +830,11 @@ class os: AllStatic {
|
|||
// ResumeThread call)
|
||||
static void pause();
|
||||
|
||||
// Builds a platform dependent Agent_OnLoad_<libname> function name
|
||||
// which is used to find statically linked in agents.
|
||||
static char* build_agent_function_name(const char *sym, const char *cname,
|
||||
bool is_absolute_path);
|
||||
|
||||
class SuspendedThreadTaskContext {
|
||||
public:
|
||||
SuspendedThreadTaskContext(Thread* thread, void *ucontext) : _thread(thread), _ucontext(ucontext) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue