6031 // restore globals |
6031 // restore globals |
6032 UseLargePagesIndividualAllocation = old_use_large_pages_individual_allocation; |
6032 UseLargePagesIndividualAllocation = old_use_large_pages_individual_allocation; |
6033 UseNUMAInterleaving = old_use_numa_interleaving; |
6033 UseNUMAInterleaving = old_use_numa_interleaving; |
6034 } |
6034 } |
6035 #endif // PRODUCT |
6035 #endif // PRODUCT |
|
6036 |
|
6037 /* |
|
6038 All the defined signal names for Windows. |
|
6039 |
|
6040 NOTE that not all of these names are accepted by FindSignal! |
|
6041 |
|
6042 For various reasons some of these may be rejected at runtime. |
|
6043 |
|
6044 Here are the names currently accepted by a user of sun.misc.Signal with |
|
6045 1.4.1 (ignoring potential interaction with use of chaining, etc): |
|
6046 |
|
6047 (LIST TBD) |
|
6048 |
|
6049 */ |
|
6050 int os::get_signal_number(const char* name) { |
|
6051 static const struct { |
|
6052 char* name; |
|
6053 int number; |
|
6054 } siglabels [] = |
|
6055 // derived from version 6.0 VC98/include/signal.h |
|
6056 {"ABRT", SIGABRT, // abnormal termination triggered by abort cl |
|
6057 "FPE", SIGFPE, // floating point exception |
|
6058 "SEGV", SIGSEGV, // segment violation |
|
6059 "INT", SIGINT, // interrupt |
|
6060 "TERM", SIGTERM, // software term signal from kill |
|
6061 "BREAK", SIGBREAK, // Ctrl-Break sequence |
|
6062 "ILL", SIGILL}; // illegal instruction |
|
6063 for(int i=0;i<sizeof(siglabels)/sizeof(struct siglabel);i++) |
|
6064 if(!strcmp(name, siglabels[i].name)) |
|
6065 return siglabels[i].number; |
|
6066 return -1; |
|
6067 } |
|
6068 |