Mercurial > hg > truffle
comparison src/os/solaris/vm/os_solaris.cpp @ 268:d6340ab4105b
6723228: NUMA allocator: assert(lgrp_id != -1, "No lgrp_id set")
6723229: NUMA allocator: assert(lgrp_num > 0, "There should be at least one locality group")
Summary: The fix takes care of the assertion triggered during TLAB resizing after reconfiguration. Also it now handles a defect in the topology graph, in which a single leaf node doesn't have memory.
Reviewed-by: jmasa
author | iveresov |
---|---|
date | Thu, 17 Jul 2008 10:26:33 -0700 |
parents | 9d6a3a6891f8 |
children | 850fdf70db2b |
comparison
equal
deleted
inserted
replaced
267:9d6a3a6891f8 | 268:d6340ab4105b |
---|---|
2655 ids[bottom++] = ids[cur]; | 2655 ids[bottom++] = ids[cur]; |
2656 } | 2656 } |
2657 } | 2657 } |
2658 top += r; | 2658 top += r; |
2659 cur++; | 2659 cur++; |
2660 } | |
2661 if (bottom == 0) { | |
2662 // Handle a situation, when the OS reports no memory available. | |
2663 // Assume UMA architecture. | |
2664 ids[0] = 0; | |
2665 return 1; | |
2660 } | 2666 } |
2661 return bottom; | 2667 return bottom; |
2662 } | 2668 } |
2663 | 2669 |
2664 // Detect the topology change. Typically happens during CPU pluggin-unplugging. | 2670 // Detect the topology change. Typically happens during CPU pluggin-unplugging. |