os.cpp File Reference

#include "incls/_os.cpp.incl"

Include dependency graph for os.cpp:

Go to the source code of this file.

Functions

void intercept_for_single_step ()
static double fileTimeAsDouble (FILETIME *time)
static void initialze_performance_counter ()
char * exception_name (int code)
void trace_stack_at_exception (int *sp, int *fp, char *pc)
void suspend_process_at_stack_overflow (int *sp, int *fp, char *pc)
LONG WINAPI topLevelExceptionFilter (struct _EXCEPTION_POINTERS *exceptionInfo)
void process_settings_file (char *file_name, bool quiet)
BOOL WINAPI HandlerRoutine (DWORD dwCtrlType)
void real_time_tick (int delay_time)
DWORD WINAPI WatcherMain (LPVOID lpvParam)
void os_init ()
void os_exit ()

Variables

static HANDLE main_process
static HANDLE main_thread
static int main_thread_id
static HANDLE watcher_thread
static FILETIME process_creation_time
static FILETIME process_exit_time
static FILETIME process_user_time
static FILETIME process_kernel_time
static int has_performance_count = 0
static long_int initial_performance_count (0, 0)
static long_int performance_frequency (0, 0)
HINSTANCE hInstance = NULL
HINSTANCE hPrevInstance = NULL
int nCmdShow = 0
int bootstrapping
static CONTEXT context
bool WizardMode
static int number_of_ctrl_c = 0
bool EnableTasks
LARGE_INTEGER counter
CRITICAL_SECTION ThreadSection


Function Documentation

char* exception_name ( int  code  ) 

Definition at line 209 of file os.cpp.

static double fileTimeAsDouble ( FILETIME *  time  )  [inline, static]

Definition at line 49 of file os.cpp.

Referenced by os::currentTime(), os::system_time_for(), os::systemTime(), os::user_time_for(), and os::userTime().

BOOL WINAPI HandlerRoutine ( DWORD  dwCtrlType  ) 

Definition at line 396 of file os.cpp.

References intercept_for_single_step(), and lprintf().

Here is the call graph for this function:

static void initialze_performance_counter (  )  [static]

Definition at line 159 of file os.cpp.

References initial_performance_count, and performance_frequency.

void intercept_for_single_step (  ) 

Definition at line 181 of file dispatchTable.cpp.

Referenced by HandlerRoutine().

void os_exit (  ) 

Definition at line 491 of file os.cpp.

void os_init (  ) 

Definition at line 459 of file os.cpp.

void process_settings_file ( char *  file_name,
bool  quiet 
)

Definition at line 60 of file arguments.cpp.

References process_token().

Referenced by parse_arguments().

Here is the call graph for this function:

void real_time_tick ( int  delay_time  ) 

Definition at line 42 of file task.cpp.

References bootstrapping, Process::external_resume_current(), Process::external_suspend_current(), num_tasks, pending_tasks(), PeriodicTask::task(), and tasks.

Referenced by WatcherMain().

Here is the call graph for this function:

void suspend_process_at_stack_overflow ( int *  sp,
int *  fp,
char *  pc 
)

Definition at line 1201 of file process.cpp.

LONG WINAPI topLevelExceptionFilter ( struct _EXCEPTION_POINTERS *  exceptionInfo  ) 

Definition at line 240 of file os.cpp.

void trace_stack_at_exception ( int *  sp,
int *  fp,
char *  pc 
)

Definition at line 1185 of file process.cpp.

References last_Delta_fp, last_Delta_sp, and vframe::new_vframe().

Here is the call graph for this function:

DWORD WINAPI WatcherMain ( LPVOID  lpvParam  ) 

Definition at line 418 of file os.cpp.

References real_time_tick().

Here is the call graph for this function:


Variable Documentation

int bootstrapping

Definition at line 29 of file universe.cpp.

Referenced by main(), oopDesc::oopDesc(), real_time_tick(), and report_error().

CONTEXT context [static]

Definition at line 297 of file os.cpp.

LARGE_INTEGER counter

Definition at line 444 of file os.cpp.

Referenced by symbolTable::print_histogram().

bool EnableTasks

Definition at line 442 of file os.cpp.

Referenced by parse_arguments().

int has_performance_count = 0 [static]

Definition at line 144 of file os.cpp.

HINSTANCE hInstance = NULL

Definition at line 273 of file os.cpp.

HINSTANCE hPrevInstance = NULL

Definition at line 274 of file os.cpp.

long_int initial_performance_count(0, 0) [static]

Referenced by os::elapsedTime(), and initialze_performance_counter().

HANDLE main_process [static]

Definition at line 37 of file os.cpp.

Referenced by os::system_time_for(), os::updateTimes(), and os::user_time_for().

HANDLE main_thread [static]

Definition at line 38 of file os.cpp.

Referenced by os::starting_thread().

int main_thread_id [static]

Definition at line 39 of file os.cpp.

Referenced by os::starting_thread().

int nCmdShow = 0

Definition at line 275 of file os.cpp.

int number_of_ctrl_c = 0 [static]

Definition at line 394 of file os.cpp.

long_int performance_frequency(0, 0) [static]

Referenced by os::elapsed_frequency(), os::elapsedTime(), and initialze_performance_counter().

FILETIME process_creation_time [static]

Definition at line 42 of file os.cpp.

Referenced by os::updateTimes().

FILETIME process_exit_time [static]

Definition at line 43 of file os.cpp.

Referenced by os::updateTimes().

FILETIME process_kernel_time [static]

Definition at line 45 of file os.cpp.

Referenced by os::systemTime(), and os::updateTimes().

FILETIME process_user_time [static]

Definition at line 44 of file os.cpp.

Referenced by os::updateTimes(), and os::userTime().

CRITICAL_SECTION ThreadSection

Definition at line 446 of file os.cpp.

HANDLE watcher_thread [static]

Definition at line 40 of file os.cpp.

bool WizardMode

Definition at line 390 of file os.cpp.

Referenced by debug(), decode_method(), PrintObjectClosure::do_object(), MethodPrinterClosure::indent(), Universe::method_holder_of(), PRIM_DECL_2(), vframe::print(), Universe::print(), space::print(), oldGeneration::print(), newGeneration::print(), Universe::scavenge(), and urs_ps().


Generated on Mon Oct 9 13:43:48 2006 for Strongtalk VM by  doxygen 1.4.7