Changeset 64


Ignore:
Timestamp:
Jul 16, 2010, 8:13:29 PM (15 years ago)
Author:
dmik
Message:

hotspot/src: More to r63.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/hotspot/src/os/windows/vm/os_windows.cpp

    r58 r64  
    9898static int getLastErrorString(char *buf, size_t len);
    9999
     100#ifdef __WIN32OS2__
     101extern "C"
     102#endif
    100103BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) {
    101104  switch (reason) {
     
    554557                           CREATE_SUSPENDED | STACK_SIZE_PARAM_IS_A_RESERVATION,
    555558                           (PDWORD)&thread_id);
    556 #endif 
     559#endif
    557560  if (thread_handle == NULL) {
    558561    // perhaps STACK_SIZE_PARAM_IS_A_RESERVATION is not supported, try again
     
    574577                           CREATE_SUSPENDED,
    575578                           &thread_id);
    576 #endif 
     579#endif
    577580  }
    578581  if (thread_handle == NULL) {
     
    655658
    656659  return ms.dwAvailPhys;
    657 #else   
     660#else
    658661  // Use GlobalMemoryStatusEx() because GlobalMemoryStatus() may return incorrect
    659662  // value if total memory is larger than 4GB
     
    15701573    case 5000: st->print(" Windows 2000"); break;
    15711574    case 5001: st->print(" Windows XP"); break;
    1572 #ifndef __WIN32OS2__     
     1575#ifndef __WIN32OS2__
    15731576    case 5002:
    15741577    case 6000:
     
    16401643  ms.dwLength = sizeof(ms);
    16411644  GlobalMemoryStatus(&ms);
    1642 #else   
     1645#else
    16431646  // Use GlobalMemoryStatusEx() because GlobalMemoryStatus() may return incorrect
    16441647  // value if total memory is larger than 4GB
     
    16541657  st->print(", swap %uk", ms.dwTotalPageFile >> 10);
    16551658  st->print("(%uk free)", ms.dwAvailPageFile >> 10);
    1656 #else   
     1659#else
    16571660  st->print(", swap %uk", ms.ullTotalPageFile >> 10);
    16581661  st->print("(%uk free)", ms.ullAvailPageFile >> 10);
     
    32383241  GlobalMemoryStatus(&ms);
    32393242  _physical_memory = ms.dwTotalPhys;
    3240 #else   
     3243#else
    32413244  MEMORYSTATUSEX ms;
    32423245  ms.dwLength = sizeof(ms);
     
    34393442#else
    34403443    __asm { fstcw fp_control_word }
    3441 #endif   
     3444#endif
    34423445    // see Intel PPro Manual, Vol. 2, p 7-16
    34433446    const long precision = 0x20;
Note: See TracChangeset for help on using the changeset viewer.