Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp Thu Feb 19 17:38:53 2009 -0800 +++ b/src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp Mon Feb 23 12:02:30 2009 -0800 @@ -1,5 +1,5 @@ /* - * Copyright 1999-2008 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1999-2009 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -299,14 +299,18 @@ } +#endif // AMD64 + bool os::supports_sse() { +#ifdef AMD64 + return true; +#else if (sse_status == SSE_UNKNOWN) check_for_sse_support(); return sse_status == SSE_SUPPORTED; +#endif // AMD64 } -#endif // AMD64 - bool os::is_allocatable(size_t bytes) { #ifdef AMD64 return true;