1.1 --- a/src/os/solaris/vm/os_solaris.hpp Tue Mar 10 08:52:16 2009 -0700 1.2 +++ b/src/os/solaris/vm/os_solaris.hpp Wed Mar 11 14:16:13 2009 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved. 1.6 + * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -72,6 +72,8 @@ 1.11 LGRP_VIEW_OS /* what's available to operating system */ 1.12 } lgrp_view_t; 1.13 1.14 + typedef uint_t (*getisax_func_t)(uint32_t* array, uint_t n); 1.15 + 1.16 typedef lgrp_id_t (*lgrp_home_func_t)(idtype_t idtype, id_t id); 1.17 typedef lgrp_cookie_t (*lgrp_init_func_t)(lgrp_view_t view); 1.18 typedef int (*lgrp_fini_func_t)(lgrp_cookie_t cookie); 1.19 @@ -87,6 +89,8 @@ 1.20 const uint_t info_req[], int info_count, 1.21 uint64_t outdata[], uint_t validity[]); 1.22 1.23 + static getisax_func_t _getisax; 1.24 + 1.25 static lgrp_home_func_t _lgrp_home; 1.26 static lgrp_init_func_t _lgrp_init; 1.27 static lgrp_fini_func_t _lgrp_fini; 1.28 @@ -283,6 +287,9 @@ 1.29 } 1.30 static lgrp_cookie_t lgrp_cookie() { return _lgrp_cookie; } 1.31 1.32 + static bool supports_getisax() { return _getisax != NULL; } 1.33 + static uint_t getisax(uint32_t* array, uint_t n); 1.34 + 1.35 static void set_meminfo(meminfo_func_t func) { _meminfo = func; } 1.36 static int meminfo (const uint64_t inaddr[], int addr_count, 1.37 const uint_t info_req[], int info_count,