comparison src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp @ 585:22e09c0f4b47

6808589: Merge vm_version_x86_{32,64}.{cpp,hpp} Summary: There is very much duplicated code in vm_version_x86_{32,64}.{cpp,hpp}. Refactoring these would help maintainability. Reviewed-by: kvn, never
author twisti
date Mon, 23 Feb 2009 12:02:30 -0800
parents 24fda36852ce
children 98cb887364d3
comparison
equal deleted inserted replaced
584:49a36a80b0c7 585:22e09c0f4b47
1 /* 1 /*
2 * Copyright 1999-2008 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 1999-2009 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
297 sse_status = (*try_sse)() ? SSE_SUPPORTED : SSE_NOT_SUPPORTED; 297 sse_status = (*try_sse)() ? SSE_SUPPORTED : SSE_NOT_SUPPORTED;
298 } 298 }
299 299
300 } 300 }
301 301
302 #endif // AMD64
303
302 bool os::supports_sse() { 304 bool os::supports_sse() {
305 #ifdef AMD64
306 return true;
307 #else
303 if (sse_status == SSE_UNKNOWN) 308 if (sse_status == SSE_UNKNOWN)
304 check_for_sse_support(); 309 check_for_sse_support();
305 return sse_status == SSE_SUPPORTED; 310 return sse_status == SSE_SUPPORTED;
306 }
307
308 #endif // AMD64 311 #endif // AMD64
312 }
309 313
310 bool os::is_allocatable(size_t bytes) { 314 bool os::is_allocatable(size_t bytes) {
311 #ifdef AMD64 315 #ifdef AMD64
312 return true; 316 return true;
313 #else 317 #else