Changeset 64
- Timestamp:
- Jul 16, 2010, 8:13:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk/hotspot/src/os/windows/vm/os_windows.cpp
r58 r64 98 98 static int getLastErrorString(char *buf, size_t len); 99 99 100 #ifdef __WIN32OS2__ 101 extern "C" 102 #endif 100 103 BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) { 101 104 switch (reason) { … … 554 557 CREATE_SUSPENDED | STACK_SIZE_PARAM_IS_A_RESERVATION, 555 558 (PDWORD)&thread_id); 556 #endif 559 #endif 557 560 if (thread_handle == NULL) { 558 561 // perhaps STACK_SIZE_PARAM_IS_A_RESERVATION is not supported, try again … … 574 577 CREATE_SUSPENDED, 575 578 &thread_id); 576 #endif 579 #endif 577 580 } 578 581 if (thread_handle == NULL) { … … 655 658 656 659 return ms.dwAvailPhys; 657 #else 660 #else 658 661 // Use GlobalMemoryStatusEx() because GlobalMemoryStatus() may return incorrect 659 662 // value if total memory is larger than 4GB … … 1570 1573 case 5000: st->print(" Windows 2000"); break; 1571 1574 case 5001: st->print(" Windows XP"); break; 1572 #ifndef __WIN32OS2__ 1575 #ifndef __WIN32OS2__ 1573 1576 case 5002: 1574 1577 case 6000: … … 1640 1643 ms.dwLength = sizeof(ms); 1641 1644 GlobalMemoryStatus(&ms); 1642 #else 1645 #else 1643 1646 // Use GlobalMemoryStatusEx() because GlobalMemoryStatus() may return incorrect 1644 1647 // value if total memory is larger than 4GB … … 1654 1657 st->print(", swap %uk", ms.dwTotalPageFile >> 10); 1655 1658 st->print("(%uk free)", ms.dwAvailPageFile >> 10); 1656 #else 1659 #else 1657 1660 st->print(", swap %uk", ms.ullTotalPageFile >> 10); 1658 1661 st->print("(%uk free)", ms.ullAvailPageFile >> 10); … … 3238 3241 GlobalMemoryStatus(&ms); 3239 3242 _physical_memory = ms.dwTotalPhys; 3240 #else 3243 #else 3241 3244 MEMORYSTATUSEX ms; 3242 3245 ms.dwLength = sizeof(ms); … … 3439 3442 #else 3440 3443 __asm { fstcw fp_control_word } 3441 #endif 3444 #endif 3442 3445 // see Intel PPro Manual, Vol. 2, p 7-16 3443 3446 const long precision = 0x20;
Note:
See TracChangeset
for help on using the changeset viewer.