Lines Matching defs:to

16  * 2 along with this work; if not, write to the Free Software Foundation,
46 // os defines the interface to operating system; this includes traditional
59 // %%%%% Moved ThreadState, START_FN, OSThread to new osThread.hpp. -- Rose
165 // Interface to the performance counter
207 // Returns the number of CPUs this process is currently allowed to run on.
211 // Bind processes to processors.
213 // first you generate a distribution of processes to processors,
214 // then you bind processes according to that distribution.
215 // Compute a distribution for number of processes to processors.
219 // Binds the current process to a processor.
223 // Give a name to the current thread.
234 // OS interface to Virtual Memory
239 // Return the page size to use for a region of memory. The min_pages argument
240 // is a hint intended to limit fragmentation; it says the returned page size
246 // larger pages to be used when doing so would not cause fragmentation; in
255 // passed to page_size_for_region() and page_size should be the result of that
338 // OS interface to polling page
345 // Routines used to serialize the thread state without using membars
348 // Since we write to the serialize page from every thread, we
349 // want stores to be on unique cache lines whenever possible
350 // in order to minimize CPU cross talk. We pre-compute the
351 // amount to shift the thread* to make this offset unique to
383 // to the page size, so now we just check that the address is
385 // but we retain the NULL check to preserve existing behaviour.
422 static void yield(); // Yields to all threads with same priority
432 static void yield_all(int attempts = 0); // Yields to all other threads including lower priority
433 static void loop_breaker(int attempts); // called from within tight loops to possibly influence time-sharing
460 // Set file to send error reports.
469 // Terminate with an error. Default is to generate a core file on platforms
510 // to buf. Distance from its base address is returned as offset.
511 // If function name is not found, buf[0] is set to '\0' and offset is
512 // set to -1.
516 // Locate DLL/DSO. On success, full path of the library is copied to
517 // buf, and offset is set to be the distance between addr and the
518 // library's base address. On failure, buf[0] is set to '\0' and
519 // offset is set to -1.
562 // The following two functions are used by fatal error handler to trace
565 // OS/compiler may have different convention or provide different API to
568 // We don't attempt to become a debugger, so we only follow frames if that
570 // file but may be unsafe to read after a fatal error. So on x86, we can
572 // possible to walk C stack without having the unwind table.
576 // return current frame. pc() and sp() are set to NULL on failure.
581 // returns a string to describe the exception/signal;
588 // Fills in path to jvm.dll/libjvm.so (used by the Disassembler)
632 static julong num_mallocs; // # of calls to malloc/realloc
634 static julong num_frees; // # of calls to free
654 struct sockaddr* to, socklen_t tolen);
691 // Get the default path to the core file
726 // Hook for os specific jvm options that we don't want to abort on seeing
787 static bool find(address pc, outputStream* st = tty); // OS specific function to make sense out of an address
796 // Hint to the underlying OS that a task switch would not be good.
801 // Causes the VM to wait until an external stimulus has been applied
836 // SR_RUNNING can go to
837 // * SR_SUSPEND_REQUEST when the WatcherThread wants to suspend it
838 // SR_SUSPEND_REQUEST can go to
841 // SR_SUSPENDED can go to
842 // * SR_WAKEUP_REQUEST when the WatcherThread has done the work and wants to resume
843 // SR_WAKEUP_REQUEST can go to
859 /* try to switch state from state "from" to state "to"
862 State switch_state(State from, State to) {
863 State result = (State) Atomic::cmpxchg((jint) to, (jint *) &_state, (jint) from);
866 return to;